예제 #1
0
 public void OnDestroy()
 {
     if (Instance == this)
     {
         Instance = null;
     }
     SuspensionManager.Unregister(this);
 }
예제 #2
0
 public void Awake()
 {
     Instance = this;
     SuspensionManager.Register(this);
 }