private void Awake() { if (!beam) { beam = GetComponentInParent <LightBeam>(); } }
private void RemoveLight(LightBase source) { LightBeam lightBeam = (LightBeam)reflectedLights[source]; consume.ignoreLights.Remove(lightBeam); lightBeam.DisableLight(); reflectedLights.Remove(source); }
private void RemoveLight(LightHitInfo info) { if (reflectedLights.ContainsKey(info.source)) { LightBeam item = (LightBeam)reflectedLights[info.source]; info.outputs.Remove(item); RemoveLight(info.source); } }