DonutDonkey_U_MultimediaApplication_Fps/Assets/Script/So/AI/AimAction.cs
using System.Collections;
using Script.Mono.AI;
using UnityEngine;

namespace Script.So.AI {
    [CreateAssetMenu(menuName = "AI/Actions/Aim", order = 0)]
    public class AimAction : Action
    {
        public override void Act(AI_Brain brain)
        {
            Aim(brain); 
        } 

        private void Aim(AI_Brain brain)
        {
            if (brain.CheckIfCountDownElapsed(4))
            {
                brain.transform.LookAt(brain.ACurrentPoi.GetPosition(), Vector3.up);
            }
        }

        IEnumerator Aiming()
        {
            yield return new WaitForSeconds(2);
        }
    }
}