Example #1
0
 void Start()
 {
     numberOfResources = 60;
     pt = FindObjectOfType <PoliticsTracker>();
     baseActionController = FindObjectOfType <BaseActionController>();
     StartCoroutine("RefreshUnitArray");
     hexGrid         = FindObjectOfType <HexGrid>();
     gameUI          = FindObjectOfType <GameUI>();
     bc              = FindObjectOfType <BaseController>();
     electionHandler = FindObjectOfType <HandleElection>();
 }
Example #2
0
    void Start()
    {
        ut      = GetComponent <ObjectInfo>().ut;
        hexGrid = FindObjectOfType <HexGrid>();
        gameUI  = FindObjectOfType <GameUI>();
        pt      = FindObjectOfType <PoliticsTracker>();

        gc = FindObjectOfType <GameController>();
        //mr = GetComponent<MeshRenderer>();
        //mr.material = ObjectNotSelected;
        SetHexCoords();
        AddLocationToDict();
        DetermineCostForAction();
        DetermineCostForUpgrade();
        gc.RefreshUnitArray();
    }
Example #3
0
 void Start()
 {
     pt = FindObjectOfType <PoliticsTracker>();
 }
Example #4
0
 void Start()
 {
     gc = FindObjectOfType <GameController>();
     pt = FindObjectOfType <PoliticsTracker>();
 }