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); } }
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(); }
// 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); }