Пример #1
0
        public void AttachGoalBar(mg_jr_UIGoalBar p_goalBar)
        {
            m_goalBar           = p_goalBar;
            m_goalBarOrigParent = p_goalBar.transform.parent;
            m_goalBarOrigPos    = ((RectTransform)m_goalBar.transform).anchoredPosition;
            Transform transform = base.transform.Find("mg_jr_GoalBarSocket");

            m_goalBar.transform.position = transform.position;
            m_goalBar.transform.SetParent(transform);
            m_goalBar.UpdateGoalDisplay();
        }
Пример #2
0
 private void Awake()
 {
     m_goalBar = base.transform.parent.GetComponent <mg_jr_UIGoalBar>();
 }