public void Start() { animation.stateChanged += OnCycleComplete; animation.TransitionTo(Reloading); GameAudioManager.PlaySound(AK.EVENTS.PLAY_FPH_HUNTINGRIFLE_RELOAD_OPENBOLT, GameManager.GetPlayerObject()); step = ReloadStep.OpenBolt; }
public static bool Prefix() { PlayerManager playerManager = GameManager.GetPlayerManagerComponent(); ModAnimationStateMachine animation = ModComponentUtils.ComponentUtils.GetComponent <ModAnimationStateMachine>(playerManager.m_ItemInHands); if (animation is null) { return(true); } animation.TransitionTo(Firing); GameManager.GetVpFPSCamera().AddForce2(0f, 0.25f, 0.25f); return(false); }