public static void Destory(GameObject objEffect) { if (null == objEffect) { return; } EffectObject objectEffect = objEffect.GetComponent <EffectObject>(); if (null != objectEffect) { objectEffect.End(); } objEffect.transform.parent = EffectRoot; ObjectPoolSys.Instance.Destroy(objEffect); }