Esempio n. 1
0
 private void OnDestroy()
 {
     Instance = null;
 }
Esempio n. 2
0
 private void Awake()
 {
     Debug.Assert(Instance == null, "There are multiple water instances.");
     Instance = this;
 }