Inheritance: UnityEngine.MonoBehaviour
Example #1
0
 private void Awake()
 {
     if (Instance)
     {
         Destroy(Instance);
     }
     Instance = this;
 }
Example #2
0
 void Awake()
 {
     if (instance)
     {
         Destroy(instance);
     }
     instance = this;
 }
Example #3
0
 void Awake()
 {
     if(instance)
     {
         Destroy(instance);
     }
     instance = this;
 }