public override void OnLevelLoaded(LoadMode mode) { if (GameObject.Find("ZoomButton") != null) { sunControl = new GameObject().AddComponent <SunManager>(); CreateControlPanel(); sunControlPanel.gameObject.SetActive(false); timeSlider.gameObject.SetActive(false); AddGUIToggle(); HookZoomControls(); } }
public override void OnLevelLoaded(LoadMode mode) { if (GameObject.Find("ZoomButton") != null) { sunControl = new GameObject().AddComponent<SunManager>(); CreateControlPanel(); AddGUIToggle(); HookZoomControls(); } }