Ориентироваться по карте стало проще
This commit is contained in:
parent
b6158102e6
commit
35540cf904
Binary file not shown.
13
Assets/Scripts/Map/FollowZRotation.cs
Normal file
13
Assets/Scripts/Map/FollowZRotation.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class FollowZRotation : MonoBehaviour
|
||||
{
|
||||
[SerializeField] Transform target;
|
||||
|
||||
void Update()
|
||||
{
|
||||
transform.eulerAngles = new Vector3(90, target.eulerAngles.y, target.eulerAngles.z);
|
||||
}
|
||||
}
|
11
Assets/Scripts/Map/FollowZRotation.cs.meta
Normal file
11
Assets/Scripts/Map/FollowZRotation.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 19c6931b8c927bb46affa663ffdd3c79
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
x
Reference in New Issue
Block a user