Example #1
0
    public void OnBtnTrumpetBack()
    {
        //TrumpetFrame.SetActive(false);
        var e = new ChatTrumpetVisibleChange(false);

        EventDispatcher.Instance.DispatchEvent(e);
    }
Example #2
0
    public void OnBtnTrumpetShow()
    {
        var e = new ChatTrumpetVisibleChange(true);

        EventDispatcher.Instance.DispatchEvent(e);
        //TrumpetFrame.SetActive(true);
    }
Example #3
0
    private void OnDisable()
    {
#if !UNITY_EDITOR
        try
        {
#endif
        ChannelList.SetActive(false);
        Binding.RemoveBinding();
        var e = new ChatTrumpetVisibleChange(false);
        EventDispatcher.Instance.DispatchEvent(e);
        EventDispatcher.Instance.RemoveEventListener(ChatTrumpetWordCountCheck.EVENT_TYPE, OnChatTrumpetWordCountCheck);
#if !UNITY_EDITOR
    }
    catch (Exception ex)
    {
        Logger.Error(ex.ToString());
    }
#endif
    }