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