コード例 #1
0
 public void Clear()
 {
     BridgingAction   = null;
     KeyMessageAction = null;
     StackTrace       = null;
     LogInfoAction    = null;
 }
コード例 #2
0
    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);
    }
コード例 #3
0
    /// <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;
        }
    }
コード例 #4
0
 void OnDestroy()
 {
     FrameEvent        = null;
     LoopCompleteEvent = null;
     CompleteEvent     = null;
 }
コード例 #5
0
 public void OnInit(OnCallBackString _BridgingAction, OnCallBackString _KeyMessageAction, OnCallBackStringStringInt _StackTrace)
 {
     BridgingAction   = _BridgingAction;
     KeyMessageAction = _KeyMessageAction;
     StackTrace       = _StackTrace;
 }