private void OnEnterTrigger(Collider2D other) { EffectSensor effectSensor = other.GetComponent <EffectSensor>(); if (effectSensor != null) { if (OnEffectStimulus != null) { OnEffectStimulus(effect); } effectSensor.SenseEffect(effect); } }
private void InjectApplyEffectOnEffectDetected([EntityScope] EffectSensor effectSensor, [RootScope] GameObject rootGameObject) { this.effectSensor = effectSensor; this.rootGameObject = rootGameObject; }