// Use this for initialization void Start() { timescript = GameObject.FindObjectOfType <VRTime>(); timescript.timeChanged += TimeChanged; lightToControl = GetComponent <Light>(); defaultIntensity = lightToControl.intensity; }
private void Start() { _StartTime = 1; _EndTime = 1; time = GameObject.FindObjectOfType <VRTime>(); time.timeChanged += OnTimeChanged; defaultIntensity = controlledLight.intensity; UpdateLightStatus(); }
protected override void Start() { base.Start(); watchInteraction = GetComponent <VRWatchInteraction>(); timeScript = GameObject.FindObjectOfType <VRTime>(); timeScript.timeChanged += OnTimeChanged; ((VRWatchInteraction)vrInteraction).onInteract += OnInteract; ((VRWatchInteraction)vrInteraction).updateDisplay += UpdateDisplay; }
protected override void Start() { timeScript = GameObject.FindObjectOfType <VRTime>(); base.Start(); }
private void Start() { timeScript = GameObject.FindObjectOfType <VRTime>(); timeScript.timeChanged += OnTimeChanged; }