private void Awake()
 {
     if (!beam)
     {
         beam = GetComponentInParent <LightBeam>();
     }
 }
Esempio n. 2
0
        private void RemoveLight(LightBase source)
        {
            LightBeam lightBeam = (LightBeam)reflectedLights[source];

            consume.ignoreLights.Remove(lightBeam);
            lightBeam.DisableLight();
            reflectedLights.Remove(source);
        }
Esempio n. 3
0
 private void RemoveLight(LightHitInfo info)
 {
     if (reflectedLights.ContainsKey(info.source))
     {
         LightBeam item = (LightBeam)reflectedLights[info.source];
         info.outputs.Remove(item);
         RemoveLight(info.source);
     }
 }