14 lines
265 B
C#
14 lines
265 B
C#
|
using UnityEngine;
|
||
|
|
||
|
namespace Creatures.Player.Movement
|
||
|
{
|
||
|
public class PlayerRotate : MonoBehaviour
|
||
|
{
|
||
|
public Vector3 LookTarget(Vector3 moveDir)
|
||
|
{
|
||
|
moveDir.y = 0;
|
||
|
return transform.position + moveDir;
|
||
|
}
|
||
|
}
|
||
|
}
|