public void ShowGoalInfo() { GoalCanvas.SetActive(true); //GoalTexts[_theGameManager.CurrentVC.GoalIndex - 1].gameObject.SetActive(false); //GoalTexts[_theGameManager.CurrentVC.GoalIndex].gameObject.SetActive(true); //MyScrollRect.content = GoalTexts[_theGameManager.CurrentVC.GoalIndex]; foreach (RectTransform rt in GoalTexts) { if (rt != GoalTexts[_theGameManager.CurrentVC.GoalIndex]) { rt.gameObject.SetActive(false); } else { rt.gameObject.SetActive(true); } } }
public void HideGoalInfo() { GoalCanvas.SetActive(false); }