void Awake() { m_instance = this; m_myTransform = transform; FillFullNameData(m_myTransform); m_goOccupyTowerUIBtnJoin = FindTransform("OccupyTowerUIBtnJoin").gameObject; m_spOccupyTowerUIBtnJoinBGUp = FindTransform("OccupyTowerUIBtnJoinBGUp").GetComponentsInChildren <UISprite>(true)[0]; m_lblOccupyTowerUIQueueNum = FindTransform("OccupyTowerUIQueueNum").GetComponentsInChildren <UILabel>(true)[0]; m_lblOccupyTowerUIScoreTitle = FindTransform("OccupyTowerUIScoreTitle").GetComponentsInChildren <UILabel>(true)[0]; m_lblOccupyTowerUIScoreNum = FindTransform("OccupyTowerUIScoreNum").GetComponentsInChildren <UILabel>(true)[0]; // 匹配UI m_goMatchUI = FindTransform("OccupyTowerUIMatchUI").gameObject; m_lblMatchUICountDown = FindTransform("OccupyTowerUIMatchUICountDown").GetComponentsInChildren <UILabel>(true)[0]; m_lblMatchUIText = FindTransform("OccupyTowerUIMatchUIText").GetComponentsInChildren <UILabel>(true)[0]; m_goMatchUIOKBtn = FindTransform("OccupyTowerUIMatchUIOKBtn").gameObject; m_goMatchUICancelBtn = FindTransform("OccupyTowerUIMatchUICancelBtn").gameObject; m_lblMatchUICancelBtnText = FindTransform("OccupyTowerUIMatchUICancelBtnText").GetComponentsInChildren <UILabel>(true)[0]; m_lblMatchUIOKBtnText = FindTransform("OccupyTowerUIMatchUIOKBtnText").GetComponentsInChildren <UILabel>(true)[0]; // I18N FindTransform("OccupyTowerUITitleName").GetComponentsInChildren <UILabel>(true)[0].text = LanguageData.GetContent(24034); FindTransform("OccupyTowerUIRuleTitle").GetComponentsInChildren <UILabel>(true)[0].text = string.Concat(LanguageData.GetContent(24034), LanguageData.GetContent(48912)); m_lblMatchUIText.text = LanguageData.GetContent(48908); m_lblOccupyTowerUIScoreTitle.text = LanguageData.GetContent(48905); SetOccupyTowerUIRule(); SetIsMatchNow(false); Initialize(); }
void Awake() { m_instance = this; m_myTransform = transform; FillFullNameData(m_myTransform); m_goOccupyTowerUIBtnJoin = FindTransform("OccupyTowerUIBtnJoin").gameObject; m_spOccupyTowerUIBtnJoinBGUp = FindTransform("OccupyTowerUIBtnJoinBGUp").GetComponentsInChildren<UISprite>(true)[0]; m_lblOccupyTowerUIQueueNum = FindTransform("OccupyTowerUIQueueNum").GetComponentsInChildren<UILabel>(true)[0]; m_lblOccupyTowerUIScoreTitle = FindTransform("OccupyTowerUIScoreTitle").GetComponentsInChildren<UILabel>(true)[0]; m_lblOccupyTowerUIScoreNum = FindTransform("OccupyTowerUIScoreNum").GetComponentsInChildren<UILabel>(true)[0]; // 匹配UI m_goMatchUI = FindTransform("OccupyTowerUIMatchUI").gameObject; m_lblMatchUICountDown = FindTransform("OccupyTowerUIMatchUICountDown").GetComponentsInChildren<UILabel>(true)[0]; m_lblMatchUIText = FindTransform("OccupyTowerUIMatchUIText").GetComponentsInChildren<UILabel>(true)[0]; m_goMatchUIOKBtn = FindTransform("OccupyTowerUIMatchUIOKBtn").gameObject; m_goMatchUICancelBtn = FindTransform("OccupyTowerUIMatchUICancelBtn").gameObject; m_lblMatchUICancelBtnText = FindTransform("OccupyTowerUIMatchUICancelBtnText").GetComponentsInChildren<UILabel>(true)[0]; m_lblMatchUIOKBtnText = FindTransform("OccupyTowerUIMatchUIOKBtnText").GetComponentsInChildren<UILabel>(true)[0]; // I18N FindTransform("OccupyTowerUITitleName").GetComponentsInChildren<UILabel>(true)[0].text = LanguageData.GetContent(24034); FindTransform("OccupyTowerUIRuleTitle").GetComponentsInChildren<UILabel>(true)[0].text = string.Concat(LanguageData.GetContent(24034), LanguageData.GetContent(48912)); m_lblMatchUIText.text = LanguageData.GetContent(48908); m_lblOccupyTowerUIScoreTitle.text = LanguageData.GetContent(48905); SetOccupyTowerUIRule(); SetIsMatchNow(false); Initialize(); }