public void Appear() { DwarfNeeds.SetNeedActive(_restorationPlace.need, true); _appeared = true; _restorationPlace.gameObject.SetActive(true); World.AddConstruction(_restorationPlace.construction, World.WorldPointToCoordinates(_restorationPlace.transform.position + Vector3.up / 2)); }
public void Init(MonoBehaviour routineRunner) { instance = this; SetDugDepth(0); SetGold(20); SetBlocksCleared(0); SetCountDeadDwarfs(0); _restorationPlacesOnGround.ForEach(t => t.Hide()); _scenarioScripts.ForEach(t => t.hasBeenPlayed = false); EnumUtils.Values <DwarfNeed>().ForEach(t => DwarfNeeds.SetNeedActive(t, false)); SetListenersEnabled(true); routineRunner.StartCoroutine(ManageDwarfs()); }