Esempio n. 1
0
 void OnDestroy()
 {
     Singleton = null;
 }
Esempio n. 2
0
 void Awake()
 {
     Singleton = this;
 }
Esempio n. 3
0
 void Awake()
 {
     //Register to cvar watcher on awake, onstart has a low chance to glitch the gun
     cvar_watcher  = FindObjectOfType <Server_watcher>();
     sound_watcher = FindObjectOfType <Sound_watcher>();
 }