Ejemplo n.º 1
0
        private static void UpdateForSpiritWalk(SpiritWalkingPlayer myplayer)
        {
            if (SpiritWalkLogic.IsUponOpenAir(myplayer.player))
            {
                SpiritWalkFlightLogic.ApplySpiritWalkOpenAirFriction(myplayer.player);
                SpiritWalkFxLogic.ApplySpiritWalkOpenAirFriction(myplayer.player);
            }

            //

            SpiritWalkLogic.UpdateSpiritWalkCost(myplayer.player);

            SpiritWalkLogic.RunFinalDashIf(myplayer);

            //

            myplayer.player.gravity = 0f;

            //

            SpiritWalkFlightLogic.UpdateWalk(myplayer);

            SpiritWalkPelletsLogic.UpdateWalk(myplayer);
        }