public IFilteredInput ApplyUserCmd(IUserCmd cmd, int debugMoveSignal)
        {
#if UNITY_EDITOR
            if (cmd.MoveHorizontal == 0)
            {
                cmd.MoveHorizontal = debugMoveSignal;
            }
#endif
            if (playerStateCollector.GetCurrStates(EPlayerStateCollectType.CurrentMoment)
                .Contains(EPlayerState.FinalPosing))
            {
                return(EmptyInput);
            }

            UserCmdInputConverter.ApplyCmdToInput(cmd, UserInput);
            UserCmdInputConverter.ApplyInputStaticBlock(UserInput);
            BlockStateInput(cmd);
            UserCmdInputConverter.ApplyInputInterrupt(UserInput);
            return(UserInput);
        }
Exemplo n.º 2
0
 public IFilteredInput ApplyUserCmd(IUserCmd cmd)
 {
     UserCmdInputConverter.ApplyCmdToInput(cmd, UserInput);
     BlockStateInput();
     return(UserInput);
 }