public void Clear() { BridgingAction = null; KeyMessageAction = null; StackTrace = null; LogInfoAction = null; }
public void OnInit() { if (luaEnv == null) { return; } OnCallBackString BridgingAction = luaEnv.Global.Get <OnCallBackString>("BridgingAction"); OnCallBackString KeyMessageAction = luaEnv.Global.Get <OnCallBackString>("KeyMessage"); OnCallBackStringStringInt StackTrace = luaEnv.Global.Get <OnCallBackStringStringInt>("StackTrace"); MessageCenter.Instance.OnInit(BridgingAction, KeyMessageAction, StackTrace); }
/// <summary> /// 反注册委托事件 /// </summary> /// <param name="type"></param> public void UnsetEvent(int type) { switch (type) { case 1: FrameEvent = null; break; case 2: CompleteEvent = null; break; case 3: LoopCompleteEvent = null; break; } }
void OnDestroy() { FrameEvent = null; LoopCompleteEvent = null; CompleteEvent = null; }
public void OnInit(OnCallBackString _BridgingAction, OnCallBackString _KeyMessageAction, OnCallBackStringStringInt _StackTrace) { BridgingAction = _BridgingAction; KeyMessageAction = _KeyMessageAction; StackTrace = _StackTrace; }