mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
Update PlayerActor.cs
This commit is contained in:
@@ -66,6 +66,9 @@ namespace TEngine.Runtime.Actor
|
||||
{
|
||||
private GameObject _model;
|
||||
|
||||
/// <summary>
|
||||
/// Awake
|
||||
/// </summary>
|
||||
protected override void Awake()
|
||||
{
|
||||
base.Awake();
|
||||
@@ -77,6 +80,9 @@ namespace TEngine.Runtime.Actor
|
||||
BindOwnActor();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 注册组件事件
|
||||
/// </summary>
|
||||
private void RegisterEvent()
|
||||
{
|
||||
OwnActor.Event.AddEventListener<GameObject>(StringId.StringToHash("ActorEntityOnShow"),OnLoadModel,OwnActor);
|
||||
|
Reference in New Issue
Block a user