void OnTriggerEnter(Collider col) { effectHolder.ActivateInstantEffects(col.gameObject); effectHolder.PassLongEffectsToTarget(col.gameObject); Explode(); }
protected virtual void PickUp(GameObject target) { effectHolder.ActivateInstantEffects(target); effectHolder.PassLongEffectsToTarget(target); //TODO particles Destroy(gameObject); return; }
private void EffectTargets() { if (effectHolder == null) { return; } foreach (GameObject target in targets) { effectHolder.ActivateInstantEffects(target); } }