mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
Update GameActor.cs
This commit is contained in:
@@ -75,12 +75,6 @@ namespace TEngine.Runtime.Actor
|
||||
return "UNNAMED";
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Actions
|
||||
public Action Awake;
|
||||
public Action OnInit;
|
||||
public Action AfterInit;
|
||||
#endregion
|
||||
|
||||
#region Transform
|
||||
public Transform transform
|
||||
@@ -184,9 +178,27 @@ namespace TEngine.Runtime.Actor
|
||||
#endregion
|
||||
|
||||
#region Init
|
||||
public GameActor()
|
||||
internal void Init()
|
||||
{
|
||||
|
||||
Awake();
|
||||
BaseInit();
|
||||
OnInit();
|
||||
AfterInit();
|
||||
}
|
||||
|
||||
public virtual void Awake()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual void OnInit()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual void AfterInit()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected virtual GameObject CreateGameObject()
|
||||
|
Reference in New Issue
Block a user