Newer
Older
TheVengeance-Project-IADE-Unity2D / Assets / Scripts / NPC / Orc / OrcNPCController.cs
@Rackday Rackday on 27 Aug 777 bytes Minor Update
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class OrcNPCController : EnemyNPCContoller
{
    // Start is called before the first frame update
    protected override void Start()
    {
        base.Start();
    }

    // Update is called once per frame
    protected override void Update()
    {
        base.Update();
    }

    protected override void AnimationController()
    {
        base.AnimationController();
        Debug.Log("ANIMATOR IS RUNING");
        animator.SetBool("IsStopped", agent.agentStop);
        animator.SetFloat("VelocityX", agent.agentVelocity.x);
        animator.SetFloat("VelocityY", agent.agentVelocity.y);
        animator.SetFloat("LookDirection", agent.agentVelocity.normalized.magnitude);
    }
}