コード例 #1
0
 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;
    }