Beispiel #1
0
    void Update()
    {
//		if (player.onJumpPad) jumpPadStayFX.startFX (); else jumpPadStayFX.stopFX ();
//		if (!player.onGround && onJumpPad) jumpPadJumpFX.startFX (); else if (!wasGround) jumpPadJumpFX.stopFX ();
        if (!wasGround && player.onGround)
        {
            land.play();
        }
        if (player.onGround && !player.atWall && player.isMovingByInput && !player.isSliding && !player.isDead && !land.isRunning)
        {
            footsteps.startFX();
        }
        else
        {
            footsteps.stopFX();
        }
        wasGround = player.onGround;
//		onJumpPad = player.onJumpPad;
    }