private void Awake() { uiGame = transform.parent.GetComponent <UIGame>(); characElements = transform.GetComponentsInChildren <CharacElement>(); playerLevelLabel = transform.Find("PlayerLevelLabel").GetComponent <Text>(); playerLevelText = playerLevelLabel.text; availablePointsLabel = transform.Find("AvailablePointsLabel").GetComponent <Text>(); availablePointsText = availablePointsLabel.text; descriptionLabel = transform.Find("CharacDescriptionLabel").GetComponent <Text>(); }
private void Awake() { uiGame = transform.parent.GetComponent <UIGame>(); inputMgr = InputManager.Instance; returnOnChoice = transform.Find("ReturnOnChoice").gameObject; quitLabel = transform.Find("QuitLabel").GetComponent <Text>(); saveLabel = transform.Find("SaveLabel").GetComponent <Text>(); yesButton = transform.Find("YesButton").gameObject; noButton = transform.Find("NoButton").gameObject; State = QUIT_MENU_STATE.OnDesktopMainMenuChoice; }
private void Awake() { uiGame = transform.parent.GetComponent <UIGame>(); inputMgr = InputManager.Instance; }