Ejemplo n.º 1
0
 private void OnDestroy()
 {
     if (Instance == this)
     {
         Instance = null;
     }
 }
Ejemplo n.º 2
0
 private void Awake()
 {
     Instance = this;
     boss     = GetComponent <Boss>();
 }