コード例 #1
0
ファイル: LatestMsgUIForm.cs プロジェクト: zqbb/MxDebug
    private void OnMessagesEvent(string key, object values)
    {
        switch (key)

        {
        case "LatestMsgInfo":

            latestMsgInfo = JsonUtility.FromJson <LatestMsgInfo>((string)values);
            AddMsg();
            break;
        }
    }
コード例 #2
0
ファイル: DebugDataManager.cs プロジェクト: zqbb/MxDebug
    private void AddLatestMsg(string key, string Content, LogType type)
    {
        int tempIndex = GetIndexByKey(key);

        if (tempIndex == -1)
        {
            return;
        }

        LatestMsgInfo latestMsgInfo = new LatestMsgInfo();

        latestMsgInfo.Index   = tempIndex;
        latestMsgInfo.Type    = type;
        latestMsgInfo.Content = Content;

        UIManager.Instance.OpenUIForms(EnumUIFormType.LatestMsgUIForm);
        MessageMgr.SendMessageToUIForm(EnumUIFormType.LatestMsgUIForm, "LatestMsgInfo", JsonUtility.ToJson(latestMsgInfo));
    }
コード例 #3
0
ファイル: LatestMsgUIForm.cs プロジェクト: zqbb/MxDebug
 private void OnDisable()
 {
     latestMsgInfo = null;
 }