public void StepTwo() { if (twoDone) { return; } if (!started) { started = true; if (target == null) { target = FindObjectOfType <Pet>(); } tutor.ShowStepTwo(); PetUtility.TutorialPause(); EventManager.TriggerEvent(GameEvent.scrollFreezed); } if (target.rest) { tutor.CloseStepTwo(); started = false; PetUtility.ContinueGame(); EventManager.TriggerEvent(GameEvent.scrollUnfreezed); twoDone = true; } }
public void StepFour() { if (fourDone) { return; } if (!started) { //disable all other beds deactivated.Clear(); foreach (Bed bed in FindObjectsOfType <Bed>()) { if (bed != desiredBed2 && !bed.IsOccupied()) { bed.gameObject.SetActive(false); deactivated.Add(bed); } } //cover up all other cards //a pommy is draged into desired beds tutor.ShowStepFour(); PetUtility.TutorialPause(); started = true; EventManager.TriggerEvent(GameEvent.scrollFreezed); } if (desiredBed2.IsOccupied()) { //reactivate all other beds foreach (Bed bed in deactivated) { bed.gameObject.SetActive(true); } tutor.CloseStepFour(); PetUtility.ContinueGame(); started = false; fourDone = true; EventManager.TriggerEvent(GameEvent.scrollUnfreezed); } }
public void StepThree() { if (threeDone) { return; } if (!started) { tutor.ShowStepThree(); PetUtility.TutorialPause(); started = true; EventManager.TriggerEvent(GameEvent.scrollFreezed); } if (InputManager.InputIsPressing()) { tutor.CloseStepThree(); PetUtility.ContinueGame(); started = false; threeDone = true; EventManager.TriggerEvent(GameEvent.scrollUnfreezed); } }
public void StepSix() { if (sixDone) { return; } if (!started) { tutor.ShowStepSix(); PetUtility.TutorialPause(); started = true; EventManager.TriggerEvent(GameEvent.scrollUnfreezed); } if (InputManager.InputIsPressing()) { tutor.CloseStepSix(); PetUtility.ContinueGame(); started = false; sixDone = true; Destroy(gameObject); EventManager.TriggerEvent(GameEvent.scrollUnfreezed); } }