예제 #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;
     }
 }