public override void Destroy() { CancelInvoke(); if (explodeEffObj) { explodeEffObj.Destroy(); explodeEffObj = null; } if (groundEffObj) { groundEffObj.Destroy(); groundEffObj = null; } isPlaying = false; PoolManager.Despawn(xform); }
// public override void Destroy() { CancelInvoke(); if (_indicateObj) { _indicateObj.Destroy(); _indicateObj = null; } if (_explodeObj) { _explodeObj.Destroy(); _explodeObj = null; } _isPlaying = false; DespawnParamObject(); }