Example #1
0
 void Awake()
 {
     if (!Instance)
     {
         Instance = this;
     }
 }
Example #2
0
 void OnDestroy()
 {
     Instance = null;
 }
Example #3
0
 void Awake()
 {
     if (!Instance) Instance = this;
 }
Example #4
0
 void OnDestroy()
 {
     Instance = null;
 }