mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 16:34:41 +01:00
15 lines
248 B
C#
15 lines
248 B
C#
using UnityEngine;
|
|
|
|
namespace MoleMole
|
|
{
|
|
public class SteerWithDirection : FaceToTarget
|
|
{
|
|
public float angle = 10f;
|
|
|
|
public override Vector3 GetTargetFaceDir()
|
|
{
|
|
return Quaternion.Euler(0f, angle, 0f) * _aiEntity.FaceDirection;
|
|
}
|
|
}
|
|
}
|