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