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