Files
DuckovMods/CharacterPreview/ShowListen.cs

31 lines
564 B
C#
Raw Normal View History

2025-11-18 18:45:14 +08:00
using System;
using Cysharp.Threading.Tasks;
using UnityEngine;
namespace CharacterPreview
{
public class ShowListen:MonoBehaviour
{
2025-11-19 10:17:55 +08:00
private void Awake()
{
}
2025-11-18 18:45:14 +08:00
private void OnEnable()
2025-11-19 10:17:55 +08:00
{
CreateModel();
}
private void CreateModel()
2025-11-18 18:45:14 +08:00
{
try
{
_ = ModBehaviour.CreateCharacterModel();
}
catch (Exception ex)
{
Debug.LogError($"创建角色模型失败: {ex}");
}
}
}
}