Esempio n. 1
0
    public void EndStep()
    {
        foreach (Animator animator in animatorsToPlayWhileResolving)
        {
            animator.SetInteger("Tuto", animator.GetInteger("Tuto") + 1);
        }

        currentPhase = TutorialStepPhase.Ended;

        GameManager.gameManager.Player.PlrInterface.ChangeCompetencesAvailability(CompetencesUsabilityType.All);
    }
Esempio n. 2
0
    public void StartStepResolution()
    {
        currentPhase = TutorialStepPhase.Resolution;

        if (stopThePlayerOnIntro)
        {
            GameManager.gameManager.Player.ShipMvt.StartShip();
        }

        foreach (Animator animator in animatorsToPlayInIntro)
        {
            animator.SetInteger("Tuto", animator.GetInteger("Tuto") + 1);
        }

        foreach (Animator animator in animatorsToPlayWhileResolving)
        {
            animator.SetInteger("Tuto", animator.GetInteger("Tuto") + 1);
        }

        StartResolutionEvent.Invoke();
    }
Esempio n. 3
0
    public void PlayStepIntro()
    {
        currentPhase = TutorialStepPhase.Intro;

        foreach (Animator animator in animatorsToPlayInIntro)
        {
            animator.SetInteger("Tuto", animator.GetInteger("Tuto") + 1);
        }

        if (stopThePlayerOnIntro)
        {
            GameManager.gameManager.Player.ShipMvt.StopShip();
        }

        if (introCinematic != null)
        {
            introCinematic.PlayCinematic();
        }
        else
        {
            StartStepResolution();
        }
    }