Example #1
0
 public void SetDirty()
 {
     if (!isDirty)
     {
         isDirty = true;
         SignalManager.AddDirtyNode(this);
     }
 }
 private static void EnsureInstance()
 {
     if (instance == null)
     {
         GameObject gameObject = new GameObject("SignalManager");
         instance = gameObject.AddComponent <SignalManager>();
         UnityEngine.Object.DontDestroyOnLoad(gameObject);
     }
 }