1
This commit is contained in:
28
Unity/Scripts/Provider/MultiplexGroup.cs
Normal file
28
Unity/Scripts/Provider/MultiplexGroup.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user