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