/// <summary> /// Starts the actual throw. /// </summary> protected virtual void StartThrow() { if (m_Throwing) { return; } m_Throwing = true; m_Thrown = false; m_Reequipping = false; m_Reequipped = false; if (m_Aiming && m_ShowTrajectoryOnAim && m_TrajectoryObject != null) { m_TrajectoryObject.ClearTrajectory(); } m_CharacterLocomotion.UpdateItemAbilityAnimatorParameters(); }
/// <summary> /// Tries to stop the item use. /// </summary> public override void TryStopItemUse() { base.TryStopItemUse(); // The end actions aren't called until the continuous use item stops. m_StopRequested = true; if (!m_Stopping && CanStopItemUse()) { m_Stopping = true; m_CharacterLocomotion.UpdateItemAbilityAnimatorParameters(); if (m_CastActions != null) { for (int i = 0; i < m_CastActions.Length; ++i) { m_CastActions[i].WillStop(); } } if (m_UseType == CastUseType.Continuous) { StartStopBeginEndActions(false, true, true); } } }