Esempio n. 1
0
        private void OnEnterTrigger(Collider2D other)
        {
            EffectSensor effectSensor = other.GetComponent <EffectSensor>();

            if (effectSensor != null)
            {
                if (OnEffectStimulus != null)
                {
                    OnEffectStimulus(effect);
                }

                effectSensor.SenseEffect(effect);
            }
        }
Esempio n. 2
0
 private void InjectApplyEffectOnEffectDetected([EntityScope] EffectSensor effectSensor,
                                                [RootScope] GameObject rootGameObject)
 {
     this.effectSensor   = effectSensor;
     this.rootGameObject = rootGameObject;
 }