示例#1
0
 // Start is called before the first frame update
 private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
 }
示例#2
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
示例#3
0
 void Awake()
 {
     //singleton
     if (instance == null)
     {
         instance = this;
     }
 }