Skip to content

Commit

Permalink
Update SimplePlayerAnimator.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
glabute committed Jul 5, 2024
1 parent 208bc03 commit c1f66c4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public States State
}
}

void Start()
protected virtual void Start()
{
m_PreviousPosition = transform.position;
m_Controller = GetComponentInParent<SimplePlayerControllerBase>();
Expand All @@ -74,7 +74,7 @@ void Start()
/// LateUpdate is used to avoid having to worry about script execution order:
/// it can be assumed that the player has already been moved.
/// </summary>
virtual protected void LateUpdate()
protected virtual void LateUpdate()
{
// In no-controller mode, we monitor the player's motion and deduce the appropriate animation.
// We don't support jumping in this mode.
Expand All @@ -95,7 +95,7 @@ virtual protected void LateUpdate()
/// <param name="vel">Player's velocity, in player-local coordinates.</param>
/// <param name="jumpAnimationScale">Scale factor to apply to the jump animation.
/// It can be used to slow down the jump animation for longer jumps.</param>
virtual protected void UpdateAnimation(Vector3 vel, float jumpAnimationScale)
protected virtual void UpdateAnimation(Vector3 vel, float jumpAnimationScale)
{
if (!TryGetComponent(out Animator animator))
{
Expand Down

0 comments on commit c1f66c4

Please sign in to comment.