public static AudioGrp_Footstep GetFootStepState(this PlayerEntity player) { PostureInConfig curPosture = player.stateInterface.State.GetCurrentPostureState(); var inWater = SingletonManager.Get <MapConfigManager>().InWater(player.position.Value); if (inWater) { return(AudioGrp_Footstep.None); } return(AudioUtil.ToAudioFootGrp(curPosture)); }
public static AudioGrp_Footstep GetFootStepState(this PlayerEntity player) { PostureInConfig curPosture = player.stateInterface.State.GetCurrentPostureState(); return(AudioUtil.ToAudioFootGrp(curPosture)); }