Пример #1
0
 public override void OnEnable()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else
     {
         Debug.LogError("Multiple announcer components exist!");
     }
 }
Пример #2
0
 public override void OnDisable()
 {
     Instance = null;
 }