Exemplo n.º 1
0
    public void InitStage(int stage)
    {
        m_Timer   = 0;
        m_Action += StagePreparation;

        // Set glove collider
        glove1.enabled = stage != 4;
        glove2.enabled = stage != 4;

        // Set get ready text
        textAnimation.SetGetReadyText();

        // Difficulty is based on what stage the player is playing on
        difficulty = stage;

        // Set agent properties
        footballPlayer.agent.speed = 2.5f;
        footballPlayer.agent.SetDestination(movePointReadyPoint.position);

        // Set animator properties
        footballPlayer.animator.speed = 1;
        footballPlayer.animator.SetBool("movingBack", true);
    }