修改样例包

This commit is contained in:
MuHua-123
2025-03-14 11:50:18 +08:00
parent 17c4b7a054
commit e4d10c15c6
65 changed files with 25 additions and 24 deletions
@@ -0,0 +1,24 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using MuHua;
namespace MuHua.Sample
{
public class StandardLabel : MonoBehaviour
{
public GameObject labelPrefab;
public Vector3 offset = new Vector3(0, 1, 0);
private GameObject labelObject;
void Start()
{
labelObject = LabelController.CreateLabel(transform, labelPrefab, offset);
}
void OnDestroy()
{
if (labelObject != null) { Destroy(labelObject); }
}
}
}