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