private void StartFadeIn() { if (!enabled) { _light.GetLight().enabled = true; _light.SetIntensityScale(0f); _timer = 0f; enabled = true; } }
private void Start() { if (_emissiveRenderer != null) { _emissiveRenderer.SetEmissiveScale(0f); } _light.GetLight().enabled = false; //_originalRange = _light.range; enabled = false; }
private void Awake() { _probe = QSBWorldSync.GetUnityObjects <QSBProbe>().First(x => gameObject.transform.IsChildOf(x.transform)); if (_probe == null) { DebugLog.ToConsole($"Error - Couldn't find QSBProbe!", OWML.Common.MessageType.Error); } _light = GetComponent <OWLight2>(); //_intensity = _light.GetLight().intensity; _light.GetLight().enabled = false; enabled = false; _probe.OnLaunchProbe += OnLaunch; _probe.OnAnchorProbe += OnAnchorOrRetrieve; _probe.OnRetrieveProbe += OnAnchorOrRetrieve; }