From 9c539a58d7e7720f06617eb6ea1347b351e26b35 Mon Sep 17 00:00:00 2001 From: kebiao <380000937@qq.com> Date: Mon, 26 Feb 2018 19:05:38 +0800 Subject: [PATCH] up --- KBEMain.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/KBEMain.cs b/KBEMain.cs index f821dbb..3eecdd9 100644 --- a/KBEMain.cs +++ b/KBEMain.cs @@ -27,13 +27,13 @@ public class KBEMain : MonoBehaviour public bool useAliasEntityID = true; public bool isOnInitCallPropertysSetMethods = true; - void Awake() + protected virtual void Awake() { DontDestroyOnLoad(transform.gameObject); } // Use this for initialization - void Start () + protected virtual void Start () { MonoBehaviour.print("clientapp::start()"); installEvents(); @@ -78,7 +78,7 @@ public virtual void initKBEngine() gameapp = new KBEngineApp(args); } - void OnDestroy() + protected virtual void OnDestroy() { MonoBehaviour.print("clientapp::OnDestroy(): begin"); if (KBEngineApp.app != null) @@ -89,7 +89,7 @@ void OnDestroy() MonoBehaviour.print("clientapp::OnDestroy(): end"); } - void FixedUpdate () + protected virtual void FixedUpdate () { KBEUpdate(); }