quantum-space-buddies/QSB/QuantumSync/QSBMultiStateQuantumObject.cs
Mister_Nebula 804a1a826b cleanup
2020-12-24 16:05:54 +00:00

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>();
}
}
}
}