Пример #1
0
 // On destroy
 void OnDestroy()
 {
     s_Instance = null;
 }
Пример #2
0
 // Use this for initialization
 void Awake()
 {
     s_Instance = this;
 }