Initial commit

This commit is contained in:
2026-02-18 00:08:49 +02:00
commit 5105b6b060
1270 changed files with 513010 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Billboard : MonoBehaviour
{
private Transform _parentObject;
public float heightOffset = 1.5f;
void Start()
{
_parentObject = transform.parent;
transform.SetParent(null);
}
void LateUpdate()
{
if (_parentObject == null) return;
if (Camera.main == null) return;
transform.position = _parentObject.position + Vector3.up * heightOffset;
transform.LookAt(Camera.main.transform);
transform.Rotate(0, 180, 0);
}
void OnDestroy()
{
if (_parentObject == null)
{
Destroy(gameObject);
}
}
}