31 lines
564 B
C#
31 lines
564 B
C#
using System;
|
|
using Cysharp.Threading.Tasks;
|
|
using UnityEngine;
|
|
|
|
namespace CharacterPreview
|
|
{
|
|
public class ShowListen:MonoBehaviour
|
|
{
|
|
private void Awake()
|
|
{
|
|
|
|
}
|
|
|
|
private void OnEnable()
|
|
{
|
|
CreateModel();
|
|
}
|
|
|
|
private void CreateModel()
|
|
{
|
|
try
|
|
{
|
|
_ = ModBehaviour.CreateCharacterModel();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
Debug.LogError($"创建角色模型失败: {ex}");
|
|
}
|
|
}
|
|
}
|
|
} |