Files
DuckovMods/CharacterPreview/ShowListen.cs
2025-11-19 10:17:55 +08:00

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}");
}
}
}
}