コード例 #1
0
ファイル: Characteristics.cs プロジェクト: cl4nk/RPGRogueLike
        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>();
        }
コード例 #2
0
        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;
        }
コード例 #3
0
ファイル: InGameMenu.cs プロジェクト: cl4nk/RPGRogueLike
 private void Awake()
 {
     uiGame   = transform.parent.GetComponent <UIGame>();
     inputMgr = InputManager.Instance;
 }