private bool OnSwitchChange(SwitchEvents.SwitchChange evt) { CameraController component = evt.Owner.GetComponent <CameraController>(); if (component != null) { if (evt.Value) { ActiveCamera.Set(component); } else { ActiveCamera.Clear(component); } } return(false); }