public void Simulate(ref PlayerState state, PlayerInputContext input) { // If under hitlag, do not further simulate player. if (state.Hitlag > 0) { state.Hitlag--; return; } SimulationComponents?.Simulate(ref state, input); }
public void Simulate(ref PlayerState state, PlayerInputContext input) { }
public PlayerState Simulate(PlayerState state, PlayerInputContext input) => state;
public PlayerState Simulate(PlayerState state, PlayerInputContext input) { return(SimulationComponents?.Simulate(state, input) ?? state); }