예제 #1
0
 void Awake()
 {
     if (_instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         _instance = this;
     }
 }
예제 #2
0
    void Awake()
    {
        if (_instance != null)
        {
            Destroy(gameObject);
        }
        else
        {
            _instance = this;
        }

        //activeUnitsInGame = new List<UnitController>();
        activeUnitsInGame = new List <UnitCtrl>();
        unitOrdersCtrl    = GetComponent <UnitOrdersCtrl>();
    }