/// <summary> /// 清除buff /// </summary> public void Clear() { if (IsInvoking("ToDestroySelf")) { return; } BuffEnd(); StartCoroutine(DisplayEffect(endEffectName, endEffectConfig, EffectId.EndEffect)); enabled = false; target.LogoffBuff(this); if (processEffect) { Destroy(processEffect); } Invoke("ToDestroySelf", 5f); }