// 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(); }
public int SelectProfessionByName(string name) { return(ProfessionList.FindIndex(item => item.Equals(name))); }