28 lines
635 B
C#
28 lines
635 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
namespace BITKit
|
||
|
{
|
||
|
public class MultiplexGroup : Provider<int>
|
||
|
{
|
||
|
public int index = 0;
|
||
|
public List<Multiplex> list = new();
|
||
|
void Start()
|
||
|
{
|
||
|
Set(index);
|
||
|
}
|
||
|
public override void Set(int t)
|
||
|
{
|
||
|
index = t;
|
||
|
foreach (var item in list)
|
||
|
{
|
||
|
item.active = false;
|
||
|
}
|
||
|
list[index].active = true;
|
||
|
}
|
||
|
public override int Get()
|
||
|
{
|
||
|
throw new System.NotImplementedException();
|
||
|
}
|
||
|
}
|
||
|
}
|