2024-12-19 19:21:36 +00:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
public class PlayerRotate : MonoBehaviour
|
|
|
|
{
|
2024-12-20 15:51:03 +00:00
|
|
|
public Vector3 LookTarget(Vector3 moveDir)
|
|
|
|
{
|
2024-12-23 20:34:57 +00:00
|
|
|
moveDir.y = 0;
|
2024-12-20 15:51:03 +00:00
|
|
|
return transform.position + moveDir;
|
|
|
|
}
|
2024-12-19 19:21:36 +00:00
|
|
|
}
|