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

            consume.ignoreLights.Remove(lightBeam);
            lightBeam.DisableLight();
            reflectedLights.Remove(source);
        }
Exemplo 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);
     }
 }