Beispiel #1
0
        public void SetStar(int count)
        {
            if (count < 0 || count > 3)
            {
                Log.Error("Count is invalid");
                return;
            }

            m_Star.SetStar(count);
        }
Beispiel #2
0
        protected override void OnOpen(object userData)
        {
            base.OnOpen(userData);

            m_Data = userData as LevelResultFormData;
            if (m_Data == null)
            {
                return;
            }

            m_Ctrl.selectedIndex = m_Data.Victory ? 0 : 1;
            m_Star.SetStar(m_Data.StarCount);
            m_Gold.text = m_Data.GlodAward.ToString();
            m_Exp.text  = m_Data.ExpAward.ToString();
        }