Карта для игрока
This commit is contained in:
13
Assets/Scripts/Map/FollowYRotation.cs
Normal file
13
Assets/Scripts/Map/FollowYRotation.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class FollowYRotation : MonoBehaviour
|
||||
{
|
||||
[SerializeField] Transform target;
|
||||
|
||||
void Update()
|
||||
{
|
||||
transform.eulerAngles = new Vector3(0, target.eulerAngles.y, 0);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user