private void ActivatePlan() { btnPlan.DOKill(); btnReview.DOKill(); btnPlan.Get <RectTransform>().DOAnchorPosX(0, animTime); btnReview.Get <RectTransform>().DOAnchorPosX(140, animTime); btnReview.Get <Image>().DOColor(colInactive, animTime); btnPlan.Get <Image>().DOColor(colActive, animTime); btnReview.Get <TextMeshProUGUI>("txt").DOColor(Color.black, animTime); btnPlan.Get <TextMeshProUGUI>("txt").DOColor(Color.white, animTime); ManagerUI.GoTo <ScreenPlan>(); }
private IEnumerator ILoadScenes(string[] scenes) { foreach (string s in scenes) { yield return(SceneManager.LoadSceneAsync(s, LoadSceneMode.Additive)); } foreach (Screen s in GameObject.FindObjectsOfType <Screen>()) { ManagerUI.allScreens.Add(s.GetType(), s.gameObject); s.transform.localPosition = Vector3.zero; } ManagerUI.GetScreenObject <ScreenOverlay>().transform.SetAsLastSibling(); ManagerUI.GetScreenObject <ScreenOverlay>().GetComponent <ScreenOverlay>().OnLoad(); ManagerUI.GoTo <ScreenView>(); ManagerUI.GetScreenObject <ScreenOverlay>().GetComponent <ScreenOverlay>().OnScreenEnter(); }