Пример #1
0
 protected override void OnDestroy()
 {
     Instance = null;
     base.OnDestroy();
 }
Пример #2
0
 private void Awake()
 {
     Instance = this;
 }