mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Update GameActor.cs
This commit is contained in:
@@ -76,12 +76,6 @@ namespace TEngine.Runtime.Actor
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Actions
|
|
||||||
public Action Awake;
|
|
||||||
public Action OnInit;
|
|
||||||
public Action AfterInit;
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Transform
|
#region Transform
|
||||||
public Transform transform
|
public Transform transform
|
||||||
{
|
{
|
||||||
@@ -184,7 +178,25 @@ namespace TEngine.Runtime.Actor
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Init
|
#region Init
|
||||||
public GameActor()
|
internal void Init()
|
||||||
|
{
|
||||||
|
Awake();
|
||||||
|
BaseInit();
|
||||||
|
OnInit();
|
||||||
|
AfterInit();
|
||||||
|
}
|
||||||
|
|
||||||
|
public virtual void Awake()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public virtual void OnInit()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public virtual void AfterInit()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user