示例#1
0
 private void Awake()
 {
     if (instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
         ApplyEnable();
     }
 }
示例#2
0
 private void Awake()
 {
     instance = this;
     ApplyEnable();
 }