mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 18:35:34 +00:00
25 lines
686 B
C#
25 lines
686 B
C#
using OWML.Utils;
|
|
using QSB.Utility;
|
|
using QSB.WorldSync;
|
|
using UnityEngine.UI;
|
|
|
|
namespace QSB.QuantumSync
|
|
{
|
|
public class QSBMultiStateQuantumObject : WorldObject<MultiStateQuantumObject>
|
|
{
|
|
public QuantumState[] QuantumStates { get; private set; }
|
|
public Text DebugBoxText;
|
|
|
|
public override void Init(MultiStateQuantumObject attachedObject, int id)
|
|
{
|
|
ObjectId = id;
|
|
AttachedObject = attachedObject;
|
|
QuantumStates = AttachedObject.GetValue<QuantumState[]>("_states");
|
|
if (QSBCore.DebugMode)
|
|
{
|
|
DebugBoxText = DebugBoxManager.CreateBox(AttachedObject.transform, 0, AttachedObject.GetValue<int>("_stateIndex").ToString()).GetComponent<Text>();
|
|
}
|
|
}
|
|
}
|
|
}
|