特效BUG
This commit is contained in:
parent
37aec77d1a
commit
7a0e410503
@ -61,8 +61,6 @@ public class Effect
|
|||||||
IsPaused = false;
|
IsPaused = false;
|
||||||
IsDisposed = false;
|
IsDisposed = false;
|
||||||
mLifeTime = 0;
|
mLifeTime = 0;
|
||||||
|
|
||||||
Debug.Log($"[Test] effect new {mData.effect}");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Play (Transform selfTransform, Transform targetTransform = null, Transform bulletTransform = null
|
public void Play (Transform selfTransform, Transform targetTransform = null, Transform bulletTransform = null
|
||||||
@ -107,7 +105,6 @@ public class Effect
|
|||||||
UpdateFollowFloorPosition ();
|
UpdateFollowFloorPosition ();
|
||||||
if (mEffectGO == null || (mData.lifeTime > 0 && mLifeTime > MaxLifeTime))
|
if (mEffectGO == null || (mData.lifeTime > 0 && mLifeTime > MaxLifeTime))
|
||||||
{
|
{
|
||||||
Debug.Log($"[Test] EffectManager.Instance.RemoveEffectByInstanceID {this.InstanceID}");
|
|
||||||
EffectManager.Instance.RemoveEffectByInstanceID(InstanceID);
|
EffectManager.Instance.RemoveEffectByInstanceID(InstanceID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -365,7 +362,6 @@ public class Effect
|
|||||||
return;
|
return;
|
||||||
if (mEffectGO != null)
|
if (mEffectGO != null)
|
||||||
{
|
{
|
||||||
Debug.Log($"[Test] effect recycleGO: {mEffectGO.name}");
|
|
||||||
ResourceMgr.Instance.RecycleGO(Constants.EffectPath, mData.effect, mEffectGO);
|
ResourceMgr.Instance.RecycleGO(Constants.EffectPath, mData.effect, mEffectGO);
|
||||||
mEffectGO = null;
|
mEffectGO = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user