void Start () { slot1Data = transform.Find ("slot01").transform.Find ("data").gameObject.GetComponent<TextMesh>(); slot1Text = transform.Find ("slot01").transform.Find ("text").gameObject.GetComponent<GameTextControl>(); slot2Data = transform.Find ("slot02").transform.Find ("data").gameObject.GetComponent<TextMesh>(); slot2Text = transform.Find ("slot02").transform.Find ("text").gameObject.GetComponent<GameTextControl>(); slot3Data = transform.Find ("slot03").transform.Find ("data").gameObject.GetComponent<TextMesh>(); slot3Text = transform.Find ("slot03").transform.Find ("text").gameObject.GetComponent<GameTextControl>(); if(int.TryParse(LevelControl.CURRENT_LEVEL_CLASS.myName, out levelValue)) { titleText = transform.Find ("levelTitle").transform.Find ("title").gameObject.GetComponent<GameTextControl>(); if(LevelControl.CURRENT_LEVEL_CLASS.type == 0) { titleText.myKey = "ui_sign_mission"; titleText.addText = " " + levelValue.ToString(); } else if(LevelControl.CURRENT_LEVEL_CLASS.type == 1) { titleText.myKey = "ui_sign_bonus_mission"; titleText.addText = " " + levelValue.ToString(); } } // slot1Data.text = LevelControl.CURRENT_LEVEL_CLASS.movesLimitForStar.ToString(); slot2Data.text = TimeScaleManager.getTimeString ((int) LevelControl.CURRENT_LEVEL_CLASS.timeLimitForStar); slot3Data.text = LevelControl.CURRENT_LEVEL_CLASS.scoreLimitForStar.ToString(); }
void Awake() { if (GameTextControl.instanece == null) { GameTextControl.instanece = this; } }
void Start() { tutorialUIPanel = GameObject.Find ("tutorialUIPanel"); colliderSet3A = GameObject.Find ("tutorialCollider3a"); colliderSet3B = GameObject.Find ("tutorialCollider3b"); colliderSet3A.SetActive (false); colliderSet3B.SetActive (false); movesRecord = GameGlobalVariables.Stats.MOVES; hand1 = GameObject.Find ("level1Hand").gameObject; hand2 = GameObject.Find ("level2Hand").gameObject; hand3 = GameObject.Find ("level3Hand").gameObject; handHolder2A = hand2.transform.Find ("handHolder2A").gameObject; handHolder2B = hand2.transform.Find ("handHolder2B").gameObject; handHolder2C = hand2.transform.Find ("handHolder2C").gameObject; //handHolder3A = hand3.transform.Find ("handHolder3A").gameObject; //handHolder3B = hand3.transform.Find ("handHolder3B").gameObject; //handHolder3C = hand3.transform.Find ("handHolder3C").gameObject; frame = GameObject.Find ("frame").gameObject; myTip = frame.transform.Find("textTask").GetComponent<GameTextControl>(); hand1.SetActive (false); hand2.SetActive (false); hand3.SetActive (false); frame.SetActive (false); }
//*************************************************************// void Awake () { _loadingScreenTexture01 = ( Texture2D ) Resources.Load ( "Textures/UI_v3/Loading/ui_loadingscreen_01" ); _loadingScreenTexture02 = ( Texture2D ) Resources.Load ( "Textures/UI_v3/Loading/ui_loadingscreen_02" ); //==============================Daves Edit================================= _loadingScreenTexture03 = ( Texture2D ) Resources.Load ( "Textures/UI_v3/Loading/ui_loadingscreen_03" ); //==============================Daves Edit================================= _text = transform.Find ( "text" ).GetComponent < GameTextControl > (); _loadingScreenMaterial = transform.Find ( "loadingScreen" ).renderer.material; _text.myKey = CURRENT_TIP_KEY; _text.lineLength = 40; _loadingScreenMaterial.mainTexture = CURRENT_LOADING_SCREEN_TEXTURE; }
public void registerGameText ( GameTextControl gameText ) { _allGameTexts.Add ( gameText ); }