Exemple #1
0
        public static void UpdateTriggersForSpiritWalk(SpiritWalkingPlayer myplayer, TriggersSet triggersSet)
        {
            bool jump  = triggersSet.Jump;
            bool down  = triggersSet.KeyStatus["Down"];
            bool up    = triggersSet.KeyStatus["Up"];
            bool left  = triggersSet.KeyStatus["Left"];
            bool right = triggersSet.KeyStatus["Right"];

            SpiritWalkLogic.HandleWalkControls(myplayer, jump, down, up, left, right);

            triggersSet.QuickMount = false;
            triggersSet.Grapple    = false;
            triggersSet.Jump       = false;
        }