// private int searchLimit = 100; public void SetUp(ScenarioData scenario, IntPoint2D startTile, ScenarioMgr.Direction startingDir, bool wandering, IntPoint2D dest, HouseManager house, bool movingIn) { Debug.Log("in citizen set up"); scenarioInfo = scenario; facing = startingDir; curTile = startTile; this.wandering = wandering; this.destTile = dest; Debug.Log("start tile: " + startTile.ToString()); Debug.Log("dest tile: " + destTile.ToString()); this.myHouse = house; this.movingIn = movingIn; havePath = false; startPath = false; if (!wandering) { Debug.Log("Starting TakePath Coroutine from SetUp"); StartCoroutine(TakePath()); } else { StartCoroutine(Wander()); } }