Exemplo n.º 1
0
    private void PlayerMoveToX(string[] parameters)
    {
        PlayerPlatformerController player = FindPlayer();

        float xPos = float.Parse(parameters[0]);
        bool  leftFacingOnArrival = bool.Parse(parameters[1]);

        if (parameters.Length > 2)
        {
            float speed = float.Parse(parameters[2]);
            player.CutsceneMoveToXPosition(xPos, leftFacingOnArrival, speed);
        }
        else
        {
            player.CutsceneMoveToXPosition(xPos, leftFacingOnArrival);
        }
    }