private void Awake() { if (main == null) { main = this; } }
private void Awake() { if (canvasGroup == null) { canvasGroup = GetComponent <CanvasGroup>(); } if (environment == null) { environment = UiEnvironment.Main; } }
private void Start() { if (contentParent == null) { contentParent = transform as RectTransform; } if (searchbar == null) { searchbar = GetComponentInChildren <InputField>(); } if (environment == null) { environment = UiEnvironment.Main; } Activate(null); }