move EDITOR scripts to proper tag

This commit is contained in:
Le Duc Anh
2026-03-12 18:11:00 +07:00
parent 99b4aecb69
commit 67220287db
4 changed files with 14 additions and 0 deletions
@@ -873,7 +873,9 @@ public class CECAttackEvent
m_timeToBeFired = (uint)nTimeToBeFired;
m_timeToDoDamage = (uint)nTimeToDoDamage;
m_bFinished = false;
#if UNITY_EDITOR
debugCounter = UnityEngine.Random.Range(0, 1000);
#endif
AddTarget(idTarget, dwModifier, nDamage);
}
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: d0c06c588e2a6442488a3542551fb243
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
+3
View File
@@ -1821,6 +1821,7 @@ namespace BrewMonster
/// If m_startingSkillID is set (>0), uses that specific skill ID and the next 7 (ID+1 to ID+7).
/// Otherwise, cycles through all learned skills in groups of 8.
/// </summary>
#if UNITY_EDITOR
public void CycleSkillShortcuts()
{
// Get shortcut set 1
@@ -1936,5 +1937,7 @@ namespace BrewMonster
CDlgQuickBar cDlgQuickBar = CECUIManager.Instance?.GetCDlgQuickBar();
cDlgQuickBar?.UpdateShortcuts();
}
#endif
}
}
+2
View File
@@ -675,11 +675,13 @@ public class CECUIManager : MonoSingleton<CECUIManager>
public void OnChangeSkillShortcut()
{
#if UNITY_EDITOR
CECHostPlayer hostPlayer = EC_Game.GetGameRun()?.GetHostPlayer();
if (hostPlayer != null)
{
hostPlayer.CycleSkillShortcuts();
}
#endif
}
/// <summary>