public FX GetFX(GameObject target, FX.Types type) { foreach (FX fx in this.fxs) { if (fx.Target == target && fx.Type == type) { return(fx); } } return(null); }
private void FXVerification(GameObject target, FX.Types type) { foreach (FX fx in this.fxs) { if (fx.Target == target && fx.Type == type) { fx.ForcedDestroy(); this.fxs.Remove(fx); break; } } }