fix bug can't cast skill

This commit is contained in:
VDH
2026-02-26 16:25:52 +07:00
parent cfdd048415
commit a10cbb23b6
5 changed files with 11 additions and 9 deletions
@@ -104,6 +104,10 @@ namespace BrewMonster
return bRet;
}
public virtual void Dispose() {
Instance = null;
}
public bool AddOneSkillGfxEvent(
A3DSkillGfxComposer pComposer,
long nHostID,
@@ -30,7 +30,7 @@ namespace BrewMonster
protected override void OnDestroy()
{
m_targets = null;
SkillGfxMan.InstanceSub = null;
SkillGfxMan.InstanceSub.Dispose();
base.OnDestroy();
}
private void Start()
@@ -1497,3 +1497,4 @@ public enum GfxSkillValType
enumGfxSkillFloat,
enumGfxSkillValTypeNum
};
@@ -747,7 +747,11 @@ namespace BrewMonster
m_pNPCMan = EC_ManMessageMono.Instance?.CECNPCMan;
}
public override void Dispose()
{
base.Dispose();
InstanceSub = null;
}
public A3DSkillGfxEvent GetEmptyEvent(GfxMoveMode mode)
{
int modeIndex = (int)mode;
@@ -59,7 +59,6 @@ namespace BrewMonster
}
if (Input.GetKeyDown(KeyCode.H))
{
BMLogger.LogError("Input.GetKeyDown(KeyCode.H)");
CycleSkillShortcuts();
}
#endif
-6
View File
@@ -419,12 +419,6 @@ namespace BrewMonster
{
pointCam.rotation = Quaternion.identity;
}
#if UNITY_EDITOR
if (Input.GetKeyDown(KeyCode.C))
{
ApplySkillShortcut(1);
}
#endif
// Update cursor based on what's under mouse
EstimateCursor();