/// <summary> /// This is the method that starts the process to moving to new home /// </summary> private void InitValForNewHome() { //_routeToNewHome.CheckPoints.Clear(); if (_brain.PullOldHome() != null && _brain.PullOldHome() == _person.Home) { //means is moving towards the same house //todo fix this keep being calling thru the game //Debug.Log(_person.MyId + " InitValForNewHome() Canceled"); return; } _brain.GoMindState = false; Debug.Log(_person.MyId + " InitValForNewHome()"); //_oldHomeKey = _brain.PullOldHome().MyId; var firstKeyOnList = _homeOldKeysList[0]; _oldHomeKey = firstKeyOnList; old = BuildingPot.Control.Registro.AllBuilding[firstKeyOnList] as Structure; buildRouteToNewHome = true; //so that state happens _brain.CurrentTask = HPers.MovingToNewHome; _brain.CheckMeOnSystemNow(); }