Ejemplo n.º 1
0
 private void OnDestroy()
 {
     if (instance == this)
     {
         instance = null;
     }
 }
Ejemplo n.º 2
0
 // Unity Methods
 private void Awake()
 {
     instance = this;
 }