private IEnumerator Start() { WaitForEndOfFrame w = new WaitForEndOfFrame(); while (!globe.parsedAvailableLayers) { yield return(w); } layerApplier = globe.GetComponent <LayerApplier>(); }
private IEnumerator Start() { globe = GetComponent <Globe>(); layerApplier = GetComponent <LayerApplier>(); WaitForEndOfFrame wait = new WaitForEndOfFrame(); if (flatLayerDropdown == null) { flatLayerDropdown = FindObjectOfType <Dropdown>(); } while (!globe.parsedAvailableLayers || globe.availableLayers == null) { yield return(wait); } PopulateDropdownItems(); }