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

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

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