public bool ProcessClientCommand(string chattext, ref ChatLabel pkTargetLable) { if (chattext.Contains("/ani") && chattext.Length == 10) { int id = int.Parse(chattext.Substring(5, 2)); int animation = int.Parse(chattext.Substring(8, 2)); NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(id); if (@char != null) { @char.SetAnimation((eCharAnimationType)animation); return(true); } } if (chattext.Contains("/objcount")) { string text = string.Empty; text = "All = " + Resources.FindObjectsOfTypeAll(typeof(UnityEngine.Object)).Length.ToString(); pkTargetLable.PushText("SYSTEM", text, ChatManager.GetChatColorKey(CHAT_TYPE.NORMAL), null); text = "Textures = " + Resources.FindObjectsOfTypeAll(typeof(Texture)).Length.ToString(); pkTargetLable.PushText("SYSTEM", text, ChatManager.GetChatColorKey(CHAT_TYPE.NORMAL), null); text = "AudioClips = " + Resources.FindObjectsOfTypeAll(typeof(AudioClip)).Length.ToString(); pkTargetLable.PushText("SYSTEM", text, ChatManager.GetChatColorKey(CHAT_TYPE.NORMAL), null); text = "Meshes = " + Resources.FindObjectsOfTypeAll(typeof(Mesh)).Length.ToString(); pkTargetLable.PushText("SYSTEM", text, ChatManager.GetChatColorKey(CHAT_TYPE.NORMAL), null); text = "Materials = " + Resources.FindObjectsOfTypeAll(typeof(Material)).Length.ToString(); pkTargetLable.PushText("SYSTEM", text, ChatManager.GetChatColorKey(CHAT_TYPE.NORMAL), null); text = "GameObjects = " + Resources.FindObjectsOfTypeAll(typeof(GameObject)).Length.ToString(); pkTargetLable.PushText("SYSTEM", text, ChatManager.GetChatColorKey(CHAT_TYPE.NORMAL), null); text = "Components = " + Resources.FindObjectsOfTypeAll(typeof(Component)).Length.ToString(); pkTargetLable.PushText("SYSTEM", text, ChatManager.GetChatColorKey(CHAT_TYPE.NORMAL), null); return(true); } if (chattext.Contains("/sf")) { NrTSingleton <FormsManager> .Instance.ShowOrClose(G_ID.DLG_FPS); return(true); } if (chattext.Contains("/fm")) { NrTSingleton <FormsManager> .Instance.ShowOrClose(G_ID.DLG_MEMORYCHECK); return(true); } if (chattext.Contains("/setfps")) { string[] array = chattext.Split(new char[] { '=' }); int num = 0; if (int.TryParse(array[1], out num)) { if (num != 0) { Application.targetFrameRate = num; } return(true); } } if (chattext.Contains("/delsolui")) { NrTSingleton <FormsManager> .Instance.ClearShowHideForms(); } if (chattext.Contains("/sr")) { NrTSingleton <NkBattleReplayManager> .Instance.SaveReplay = !NrTSingleton <NkBattleReplayManager> .Instance.SaveReplay; NrTSingleton <ChatManager> .Instance.PushSystemMsg(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1230"), "Save Replay : " + NrTSingleton <NkBattleReplayManager> .Instance.SaveReplay.ToString()); } if (chattext.Contains("/rl") && NrTSingleton <FormsManager> .Instance.GetForm(G_ID.BATTLE_REPLAY_LIST_DLG) == null) { NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.BATTLE_REPLAY_LIST_DLG); } if (chattext.Contains("/tm") && 100 <= NrTSingleton <NkCharManager> .Instance.m_kCharAccountInfo.m_nMasterLevel && NrTSingleton <FormsManager> .Instance.GetForm(G_ID.TOURNAMENT_MASTER_DLG) == null) { NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.TOURNAMENT_MASTER_DLG); } if (chattext.Contains("/logouttest") && 100 <= NrTSingleton <NkCharManager> .Instance.m_kCharAccountInfo.m_nMasterLevel) { NrMobileAuthSystem.Instance.RequestLogout = true; NrMobileAuthSystem.Instance.Auth.DeleteAuthInfo(); NrTSingleton <NrMainSystem> .Instance.ReLogin(true); } if (chattext.Contains("/relogintest") && 100 <= NrTSingleton <NkCharManager> .Instance.m_kCharAccountInfo.m_nMasterLevel) { NrTSingleton <NrMainSystem> .Instance.ReLogin(true); } return(false); }