Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        gt          = GameObject.FindGameObjectWithTag("GridController").GetComponent <GridTester>();
        tileList    = gt.GetComponent <TileLists>();
        profList    = gt.GetComponent <ProfessionList>();
        population  = new List <Man>();
        spawnPos    = transform.position;
        spawnPos.y -= 1.25f;
        SetTile();
        //tileObject.transform.localScale = ControlFactors.isometricScale;

        //Testing Purposes: Fills in Grid:
        //stage = Stage.one;
        //SetTile();
    }
Ejemplo n.º 2
0
 public int SelectProfessionByName(string name)
 {
     return(ProfessionList.FindIndex(item => item.Equals(name)));
 }