From 606c1ebfd5ce35676fa5b56ad5509ab7e8df7fb3 Mon Sep 17 00:00:00 2001 From: vuong dinh hoang Date: Wed, 22 Apr 2026 15:46:11 +0700 Subject: [PATCH] remove logger --- Assets/PerfectWorld/Scripts/Move/CECHostMove.cs | 6 +++--- Assets/PerfectWorld/Scripts/NPC/CECNPC.cs | 2 +- Assets/PerfectWorld/Scripts/NPC/NPCVisual.cs | 10 +++++----- .../Scripts/Network/CSNetwork/GameSession.cs | 6 +++--- .../PerfectWorld/Scripts/Network/UnityGameSession.cs | 2 +- Assets/PerfectWorld/Scripts/Sound/AudioManager.cs | 2 +- .../UI/GamePlay/SkillUI/CDlgSkillSubListItem.cs | 2 +- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Assets/PerfectWorld/Scripts/Move/CECHostMove.cs b/Assets/PerfectWorld/Scripts/Move/CECHostMove.cs index 9c3668c47c..3577fe347e 100644 --- a/Assets/PerfectWorld/Scripts/Move/CECHostMove.cs +++ b/Assets/PerfectWorld/Scripts/Move/CECHostMove.cs @@ -123,7 +123,7 @@ namespace BrewMonster public void SendStopMoveCmd(in Vector3 vPos, float fSpeed, int iMoveMode) { - UnityEngine.Debug.LogWarning("HoangDev : SendStopMoveCmd"); + // UnityEngine.Debug.LogWarning("HoangDev : SendStopMoveCmd"); iMoveMode |= (int)GPMoveMode.GP_MOVE_DEAD; if (cmdstopdelayCounter >= 500) @@ -330,7 +330,7 @@ namespace BrewMonster m_fBlockMove += (vNewPos - m_pHost.GetPos()).Magnitude(); m_vBlockMove += vNewPos - m_pHost.GetPos(); m_fBlockTime += fTime; - //TO DO: in c++ set 1.0f. Convert to c#, this logic is wrong. If set time is 2.0, game run correct + //TO DO: in c++ set 1.0f. Convert to c#, this logic is wrong. If set time is 2.0, game run correct if ((m_fBlockTime) >= 2.0f) { if (m_fBlockMove < GPDataTypeHelper.MIN_MOVELEN_ON_GROUND || m_vBlockMove.Magnitude() < GPDataTypeHelper.MIN_MOVELEN_FOR_DETECT_VIBRATION) @@ -528,4 +528,4 @@ namespace BrewMonster //the moving dist public float fMoveDist; }; -} \ No newline at end of file +} diff --git a/Assets/PerfectWorld/Scripts/NPC/CECNPC.cs b/Assets/PerfectWorld/Scripts/NPC/CECNPC.cs index 19645ac394..6f3a7c0370 100644 --- a/Assets/PerfectWorld/Scripts/NPC/CECNPC.cs +++ b/Assets/PerfectWorld/Scripts/NPC/CECNPC.cs @@ -151,7 +151,7 @@ public class CECNPC : CECObject // ACHAR thường là UTF-16LE → len là số byte var nameBytes = r.ReadBytes(len); m_strName = System.Text.Encoding.Unicode.GetString(nameBytes); - BMLogger.LogError($"HoangDev:m_npcUI = {m_npcUI}, NPC Name = " + m_strName); + // BMLogger.LogError($"HoangDev:m_npcUI = {m_npcUI}, NPC Name = " + m_strName); if (m_npcUI != null) { m_npcUI.SetName(m_strName); diff --git a/Assets/PerfectWorld/Scripts/NPC/NPCVisual.cs b/Assets/PerfectWorld/Scripts/NPC/NPCVisual.cs index d52547d49e..894f70cc04 100644 --- a/Assets/PerfectWorld/Scripts/NPC/NPCVisual.cs +++ b/Assets/PerfectWorld/Scripts/NPC/NPCVisual.cs @@ -18,20 +18,20 @@ public class NPCVisual : MonoBehaviour public CECNPC.INFO GetNPCINFO => m_NPCInfo; public bool TryPlayAction(string animationName, CECAttackEvent cECAttackEvent, bool isHit = false, bool bRestart = true) { - BMLogger.LogMono(this, "HoangDev: TryPlayAction: " + animationName); + // BMLogger.LogMono(this, "HoangDev: TryPlayAction: " + animationName); if (namedAnimancer == null) return false; - BMLogger.LogMono(this, "HoangDev: namedAnimancer == null: " + animationName); + // BMLogger.LogMono(this, "HoangDev: namedAnimancer == null: " + animationName); if (namedAnimancer.IsPlaying(animationName)) return false; - BMLogger.LogMono(this, "HoangDev: namedAnimancerIsPlaying == null1: " + animationName); + // BMLogger.LogMono(this, "HoangDev: namedAnimancerIsPlaying == null1: " + animationName); _currentState = namedAnimancer.TryPlay(animationName, fadeTime); if (isHit) { _currentState.Events.OnEnd = () => SetHitOnEnd(cECAttackEvent); } - if (_currentState != null) - BMLogger.LogMono(this, "HoangDev: _currentState != null1: " + _currentState.Clip.name); + // if (_currentState != null) + // BMLogger.LogMono(this, "HoangDev: _currentState != null1: " + _currentState.Clip.name); return _currentState != null; } private void SetHitOnEnd(CECAttackEvent cECAttackEvent) diff --git a/Assets/PerfectWorld/Scripts/Network/CSNetwork/GameSession.cs b/Assets/PerfectWorld/Scripts/Network/CSNetwork/GameSession.cs index cb05b97e84..05c1150c86 100644 --- a/Assets/PerfectWorld/Scripts/Network/CSNetwork/GameSession.cs +++ b/Assets/PerfectWorld/Scripts/Network/CSNetwork/GameSession.cs @@ -1437,7 +1437,7 @@ namespace CSNetwork EC_ManMessage.PostMessage(EC_MsgDef.MSG_HST_PRODUCEITEM, MANAGER_INDEX.MAN_PLAYER, 0, pDataBuf, pCmdHeader); break; case CommandID.LEARN_SKILL: - BMLogger.LogError("### GameDataSend: LEARN_SKILL"); + // BMLogger.LogError("### GameDataSend: LEARN_SKILL"); EC_ManMessage.PostMessage(EC_MsgDef.MSG_HST_LEARNSKILL, MANAGER_INDEX.MAN_PLAYER, 0, pDataBuf, pCmdHeader); break; case CommandID.GAIN_PET: @@ -2680,8 +2680,8 @@ namespace CSNetwork { gamedatasend gamedatasend = new gamedatasend(); gamedatasend.Data = C2SCommandFactory.CreateNPCSevLearnSkillCmd(idSkill); - BMLogger.LogError("HoangDev : c2s_SendCmdNPCSevLearnSkill gamedatasend.Data : " + gamedatasend.Data.Size); - BMLogger.LogError("HoangDev : c2s_SendCmdNPCSevLearnSkill idSkill : " + idSkill); + // BMLogger.LogError("HoangDev : c2s_SendCmdNPCSevLearnSkill gamedatasend.Data : " + gamedatasend.Data.Size); + // BMLogger.LogError("HoangDev : c2s_SendCmdNPCSevLearnSkill idSkill : " + idSkill); SendProtocol(gamedatasend); } diff --git a/Assets/PerfectWorld/Scripts/Network/UnityGameSession.cs b/Assets/PerfectWorld/Scripts/Network/UnityGameSession.cs index f5007a256c..ddc7c0b716 100644 --- a/Assets/PerfectWorld/Scripts/Network/UnityGameSession.cs +++ b/Assets/PerfectWorld/Scripts/Network/UnityGameSession.cs @@ -547,7 +547,7 @@ namespace BrewMonster.Network } public static void c2s_SendCmdNPCSevLearnSkill(int idSkill) { - BMLogger.LogError("c2s_SendCmdNPCSevLearnSkill"); + // BMLogger.LogError("c2s_SendCmdNPCSevLearnSkill"); Instance._gameSession.c2s_SendCmdNPCSevLearnSkill(idSkill); } public static void c2s_CmdNPCSevHello(int nid) diff --git a/Assets/PerfectWorld/Scripts/Sound/AudioManager.cs b/Assets/PerfectWorld/Scripts/Sound/AudioManager.cs index 6dab128068..13887d890a 100644 --- a/Assets/PerfectWorld/Scripts/Sound/AudioManager.cs +++ b/Assets/PerfectWorld/Scripts/Sound/AudioManager.cs @@ -63,7 +63,7 @@ public class AudioManager : MonoBehaviour IEnumerator FadeInBGM(AudioClip clip, float fadeTime) { - BMLogger.LogError($"HoangDev: FadeInBGM fadeTime {fadeTime} clip: {clip.name}" ); + // BMLogger.LogError($"HoangDev: FadeInBGM fadeTime {fadeTime} clip: {clip.name}" ); if (bgmSource.isPlaying) yield return StartCoroutine(FadeOutBGM(fadeTime)); diff --git a/Assets/PerfectWorld/Scripts/UI/GamePlay/SkillUI/CDlgSkillSubListItem.cs b/Assets/PerfectWorld/Scripts/UI/GamePlay/SkillUI/CDlgSkillSubListItem.cs index 4e38ad59e0..016d9227fe 100644 --- a/Assets/PerfectWorld/Scripts/UI/GamePlay/SkillUI/CDlgSkillSubListItem.cs +++ b/Assets/PerfectWorld/Scripts/UI/GamePlay/SkillUI/CDlgSkillSubListItem.cs @@ -118,7 +118,7 @@ namespace BrewMonster UnityGameSession.c2s_SendCmdNPCSevLearnSkill(m_skillID); int skillID = (int)GetData(); int nCondition = EC_Game.GetGameRun().GetHostPlayer().CheckSkillLearnCondition(skillID, true); - BMLogger.LogError("HoangDev: CDlgSkillSubListItem OnCommand_Upgrade clicked yes for nCondition " + nCondition); + // BMLogger.LogError("HoangDev: CDlgSkillSubListItem OnCommand_Upgrade clicked yes for nCondition " + nCondition); if (0 == nCondition) {