void OnTriggerEnter(Collider other) { if (other.gameObject.GetComponent <Boomerang>()) { tutorialManager.NextStep(); } }
public void ExitInterfaceRotation() { interactibleState = EInteractibleState.UNKNOWN; inspectionInterface.gameObject.SetActive(false); rotationPanel.SetActive(false); telescope.SetImageAlpha(false); boat.SetImageAlpha(false); interactible.ExitRotationInterface(); interactible = null; if (tutorialManager.step == ETutorialStep.OBJECT_ROTATE && tutorialManager.stateCompleted) { tutorialManager.NextStep(); } }
public IEnumerator TransitionAfterFirstBerth(bool firstEncounter) { globalAnimator.SetTrigger("EndDialogue"); yield return(new WaitForSeconds(1)); inventory.HandleBerth(false); yield return(new WaitForSeconds(0.5f)); if (firstEncounter) { if (tutorial) { tutorialManager.NextStep(); } // Add object to inventory AkSoundEngine.PostEvent("Play_Island" + currentIsland.islandNumber + "_Object0", gameObject); objectToGive = currentIsland.objectToGive; bool waitLonger = inventory.TradeObjects(objectToGive); yield return(new WaitForSeconds(1.2f + (waitLonger ? 1 : 0))); // Discover new zone nextZone = currentIsland.nextZone; EventManager.Instance.Raise(new DiscoverZoneEvent() { zoneNumber = nextZone }); } else { EventManager.Instance.Raise(new BlockInputEvent() { block = false, navigation = false }); } }
void OnTooltipHidden() { tutorialManager.NextStep(); }