Exemplo n.º 1
0
 void OnDisable()
 {
     if (_instance == this)
     {
         _instance = null;
     }
 }
Exemplo n.º 2
0
 void OnEnable()
 {
     if (_instance == null)
     {
         _instance = this;
     }
 }
Exemplo n.º 3
0
 void OnEnable()
 {
     if (_instance == null)
     {
         _instance = this;
     }
 }
Exemplo n.º 4
0
 void OnDisable()
 {
     if (_instance == this)
     {
         _instance = null;
     }
 }