Ejemplo n.º 1
0
        ////////////////

        public static void Update(SpiritWalkingPlayer myplayer, bool isSpiritWalking)
        {
//DebugLibraries.Print( "walk?", ""+isSpiritWalking+", "+myplayer.player.width+", "+myplayer.player.height );
            if (!isSpiritWalking)
            {
                return;
            }

            bool canSW = SpiritWalkLogic.CanSpiritWalk(myplayer.player);

            if (canSW)
            {
                SpiritWalkLogic.UpdateForSpiritWalk(myplayer);
            }
            else
            {
                SpiritWalkLogic.DeactivateIf(myplayer.player, true);
            }

            SpiritWalkFxLogic.Update(myplayer, canSW);
        }