Ориентироваться по карте стало проще

This commit is contained in:
Max_Divizion 2024-06-21 15:02:46 +03:00
parent b6158102e6
commit 35540cf904
4 changed files with 25 additions and 1 deletions

Binary file not shown.

View 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);
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 19c6931b8c927bb46affa663ffdd3c79
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: