chunk 1: core gameplay scripts scenes runtime assets

This commit is contained in:
2026-04-06 11:02:34 +03:00
parent fa0388bc79
commit 0d11a097d8
703 changed files with 2292651 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
using UnityEngine;
using System.Collections;
[ExecuteAlways]
public class UIBillboardBehaviour : MonoBehaviour
{
private Transform gameplayCameraTransform;
void OnEnable()
{
gameplayCameraTransform = CameraManager.Instance.GetGameplayCameraTransform();
}
void OnDisable()
{
gameplayCameraTransform = null;
}
void LateUpdate()
{
if(gameplayCameraTransform)
{
transform.LookAt(transform.position + gameplayCameraTransform.rotation * Vector3.forward, gameplayCameraTransform.rotation * Vector3.up);
}
}
}