예제 #1
0
 void OnDestroy()
 {
     if (s_Instance == this)
     {
         s_Instance = null;
     }
 }
예제 #2
0
 void Awake()
 {
     if (s_Instance != null)
     {
         Debug.LogWarning("GridUpdateManager already exists! Fix yo' shit boi!");
         Destroy(this.gameObject);
         return;
     }
     s_Instance = this;
 }