option for change visual character
This commit is contained in:
@@ -7,10 +7,9 @@ public class BlockingAnimation : Attribute { }
|
||||
public abstract class BaseCharacter : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
public NavMeshAgent _navAgent;
|
||||
[SerializeField]
|
||||
public Animator _animator;
|
||||
protected NavMeshAgent _navAgent;
|
||||
|
||||
protected Animator _animator;
|
||||
private const string WALK_VELOCITY = "WalkVelocity";
|
||||
private readonly Queue<PlayerTasks> _tasks = new Queue<PlayerTasks>();
|
||||
private PlayerTasks _currentTask;
|
||||
@@ -18,6 +17,12 @@ public abstract class BaseCharacter : MonoBehaviour
|
||||
private Action _OnAnimationFinish;
|
||||
private AnimationStates _currentAnimation;
|
||||
|
||||
protected void IntCharacter()
|
||||
{
|
||||
_animator=GetComponentInChildren<Animator>();
|
||||
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (PlayerHelper.IsBlockingAnimation(_currentAnimation))
|
||||
|
||||
Reference in New Issue
Block a user