public void LoadResourceInsteadOfAwake() { if (m_bLoadResourceInsteadOfAwake) { return; } m_bLoadResourceInsteadOfAwake = true; m_instance = this; m_myTransform = transform; FillFullNameData(m_myTransform); m_lblOKCancelTipUIInfoText = FindTransform("OKCancelTipUIInfoText").GetComponentsInChildren <UILabel>(true)[0]; m_lblOKCancelTipUIBtnTipText = FindTransform("OKCancelTipUIBtnTipText").GetComponentsInChildren <UILabel>(true)[0]; m_goOKCancelTipUIBtnTipBGDown = FindTransform("OKCancelTipUIBtnTipBGDown").gameObject; m_lblOKCancelTipUIBtnOKText = FindTransform("OKCancelTipUIBtnOKText").GetComponentsInChildren <UILabel>(true)[0]; m_spOKCancelTipUIBtnOKBGUp = FindTransform("OKCancelTipUIBtnOKBGUp").GetComponentsInChildren <UISprite>(true)[0]; m_spOKCancelTipUIBtnOKBGDown = FindTransform("OKCancelTipUIBtnOKBGDown").GetComponentsInChildren <UISprite>(true)[0]; m_lblOKCancelTipUIBtnCancelText = FindTransform("OKCancelTipUIBtnCancelText").GetComponentsInChildren <UILabel>(true)[0]; m_spOKCancelTipUIBtnCancelBGUp = FindTransform("OKCancelTipUIBtnCancelBGUp").GetComponentsInChildren <UISprite>(true)[0]; m_spOKCancelTipUIBtnCancelBGDown = FindTransform("OKCancelTipUIBtnCancelBGDown").GetComponentsInChildren <UISprite>(true)[0]; Initialize(); }
public void LoadResourceInsteadOfAwake() { if (m_bLoadResourceInsteadOfAwake) return; m_bLoadResourceInsteadOfAwake = true; m_instance = this; m_myTransform = transform; FillFullNameData(m_myTransform); m_lblOKCancelTipUIInfoText = FindTransform("OKCancelTipUIInfoText").GetComponentsInChildren<UILabel>(true)[0]; m_lblOKCancelTipUIBtnTipText = FindTransform("OKCancelTipUIBtnTipText").GetComponentsInChildren<UILabel>(true)[0]; m_goOKCancelTipUIBtnTipBGDown = FindTransform("OKCancelTipUIBtnTipBGDown").gameObject; m_lblOKCancelTipUIBtnOKText = FindTransform("OKCancelTipUIBtnOKText").GetComponentsInChildren<UILabel>(true)[0]; m_spOKCancelTipUIBtnOKBGUp = FindTransform("OKCancelTipUIBtnOKBGUp").GetComponentsInChildren<UISprite>(true)[0]; m_spOKCancelTipUIBtnOKBGDown = FindTransform("OKCancelTipUIBtnOKBGDown").GetComponentsInChildren<UISprite>(true)[0]; m_lblOKCancelTipUIBtnCancelText = FindTransform("OKCancelTipUIBtnCancelText").GetComponentsInChildren<UILabel>(true)[0]; m_spOKCancelTipUIBtnCancelBGUp = FindTransform("OKCancelTipUIBtnCancelBGUp").GetComponentsInChildren<UISprite>(true)[0]; m_spOKCancelTipUIBtnCancelBGDown = FindTransform("OKCancelTipUIBtnCancelBGDown").GetComponentsInChildren<UISprite>(true)[0]; Initialize(); }