void Awake()
 {
     //Code to manage the singleton uniqueness
     if ((singleton != null) && (singleton != this))
     {
         Destroy(gameObject);
         return;
     }
     singleton = this;
 }
示例#2
0
 private void Start()
 {
     GC = gameDirector.GetComponent <Game2Controller>();
 }
示例#3
0
    //public GameObject addScorePrefab;


    private void Awake()
    {
        instance = this;
    }