fix bug can't cast skill
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user