move EDITOR scripts to proper tag
This commit is contained in:
@@ -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:
|
||||
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user