NextStep() public method

public NextStep ( ) : void
return void
 void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.GetComponent <Boomerang>())
     {
         tutorialManager.NextStep();
     }
 }
Beispiel #2
0
    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();
        }
    }
Beispiel #3
0
    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
            });
        }
    }
Beispiel #4
0
 void OnTooltipHidden()
 {
     tutorialManager.NextStep();
 }