修改样例包
This commit is contained in:
@@ -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); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 30c0bccb9e30de449a83921c6b801a26
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user