protected virtual void InitLuaFuns() { LuaFunction f = luaObjectHost.GetLuaFun("InitManager"); if (f != null) { fnInitManager = f.cast <LuaReturnBoolDelegate>(); } f = luaObjectHost.GetLuaFun("InitStore"); if (f != null) { fnInitStore = f.cast <LuaStoreReturnBoolDelegate>(); } f = luaObjectHost.GetLuaFun("InitActions"); if (f != null) { fnInitActions = f.cast <LuaActionStoreReturnBoolDelegate>(); } f = luaObjectHost.GetLuaFun("InitPre"); if (f != null) { fnInitPre = f.cast <LuaVoidDelegate>(); } f = luaObjectHost.GetLuaFun("ReleaseManager"); if (f != null) { fnReleaseManager = f.cast <LuaReturnBoolDelegate>(); } }
private void InitLuaFun() { self = GameLuaObjectHost.LuaSelf; LuaFunction fn = self["Active"] as LuaFunction; if (fn != null) { fnActive = fn.cast <LuaVector3Delegate>(); } fn = self["Deactive"] as LuaFunction; if (fn != null) { fnDeactive = fn.cast <LuaVoidDelegate>(); } fn = self["Init"] as LuaFunction; if (fn != null) { fnInit = fn.cast <LuaReturnBoolDelegate>(); } fn = self["Destroy"] as LuaFunction; if (fn != null) { fnDestroy = fn.cast <LuaVoidDelegate>(); } fn = self["BallPush"] as LuaFunction; if (fn != null) { fnBallPush = fn.cast <LuaVoidDelegate>(); } fn = self["EndControll"] as LuaFunction; if (fn != null) { fnEndControll = fn.cast <LuaBoolDelegate>(); } fn = self["Recover"] as LuaFunction; if (fn != null) { fnRecover = fn.cast <LuaVector3Delegate>(); } fn = self["RemoveSpeed"] as LuaFunction; if (fn != null) { fnRemoveSpeed = fn.cast <LuaVoidDelegate>(); } fn = self["StartControll"] as LuaFunction; if (fn != null) { fnStartControll = fn.cast <LuaVoidDelegate>(); } }
private void InitLuaFun() { self = GameLuaObjectHost.LuaSelf; LuaFunction fn = self["RecoverPieces"] as LuaFunction; if (fn != null) { fnRecoverPieces = fn.cast <LuaReturnBoolDelegate>(); } fn = self["ThrowPieces"] as LuaFunction; if (fn != null) { fnThrowPieces = fn.cast <LuaReturnBoolDelegate>(); } }