public override void ActionUpdate(AI_Base brain, Character_Base character) { base.ActionUpdate(brain, character); float angle = character.Rotate(targetPosition); if (angle <= AngleRange) { ActionFinish(); } }
public override void ActionUpdate(AI_Base brain, Character_Base character) { base.ActionUpdate(brain, character); if (RotateToTransform) { character.Rotate(RotateToTransform.position); } timer -= Time.deltaTime; if (timer <= 0) { ActionFinish(); } }