public void LoadResourceInsteadOfAwake() { if (m_bLoadResourceInsteadOfAwake) return; m_bLoadResourceInsteadOfAwake = true; m_instance = this; m_myTransform = transform; FillFullNameData(m_myTransform); m_tranUIGridlList = FindTransform("RankingRewardUIGridList"); m_gridListCamera = FindTransform("RankingRewardUIGridListCamera").GetComponentsInChildren<Camera>(true)[0]; m_camInitPos = m_gridListCamera.transform.localPosition; m_gridListMyDragableCamera = m_gridListCamera.GetComponentsInChildren<MyDragableCamera>(true)[0]; m_goRankingRewardUIArrow = FindTransform("RankingRewardUIArrow").gameObject; m_lblRankingRewardUITitle = FindTransform("RankingRewardUITitle").GetComponentsInChildren<UILabel>(true)[0]; Initialize(); }
public void LoadResourceInsteadOfAwake() { if (m_bLoadResourceInsteadOfAwake) { return; } m_bLoadResourceInsteadOfAwake = true; m_instance = this; m_myTransform = transform; FillFullNameData(m_myTransform); m_tranUIGridlList = FindTransform("RankingRewardUIGridList"); m_gridListCamera = FindTransform("RankingRewardUIGridListCamera").GetComponentsInChildren <Camera>(true)[0]; m_camInitPos = m_gridListCamera.transform.localPosition; m_gridListMyDragableCamera = m_gridListCamera.GetComponentsInChildren <MyDragableCamera>(true)[0]; m_goRankingRewardUIArrow = FindTransform("RankingRewardUIArrow").gameObject; m_lblRankingRewardUITitle = FindTransform("RankingRewardUITitle").GetComponentsInChildren <UILabel>(true)[0]; Initialize(); }