Пример #1
0
 public void DebugReturn(DebugLevel level, string message)
 {
     if (level == DebugLevel.ERROR)
     {
         CommonDebug.LogError(message);
     }
     else if (level == DebugLevel.WARNING)
     {
         CommonDebug.LogWarning(message);
     }
     else
     {
         CommonDebug.Log(message);
     }
 }
Пример #2
0
    void UpdateChatMessage(string channelName)
    {
        if (string.IsNullOrEmpty(channelName))
        {
            return;
        }

        ChatChannel channel = null;
        bool        isValid = _chatClient.TryGetChannel(channelName, out channel);

        if (!isValid)
        {
            CommonDebug.LogError("채널이 존재하지 않습니다. ChannelName : " + channelName);
            return;
        }

        _chatUI.TxtChatMessage.text = channel.ToStringMessages();
    }
Пример #3
0
    // the following methods are implemented to give you some context. re-implement them as needed.

    public virtual void OnFailedToConnectToPhoton(DisconnectCause cause)
    {
        CommonDebug.LogError("OnFailedToConnectToPhoton >> Cause: " + cause);
    }