11 lines
193 B
C#
11 lines
193 B
C#
using UnityEngine;
|
|
|
|
public class PlayerRotate : MonoBehaviour
|
|
{
|
|
public Vector3 LookTarget(Vector3 moveDir)
|
|
{
|
|
moveDir.y = 0;
|
|
return transform.position + moveDir;
|
|
}
|
|
}
|