Example #1
0
        protected override TrackGroup GetTrackGroup(out float timeScale)
        {
            SkillData         skillData = Context.GetObject <SkillData>();
            SkillEndStageData stageData = skillData.EndStageData.Value;

            if (stageData.IsScaleByTime)
            {
                SkillRunningData runningData = Context.GetObject <SkillRunningData>();
                timeScale = runningData.TimeScaleRate;
            }
            else
            {
                timeScale = 1.0f;
            }
            return(stageData.Group.Value);
        }
        public void SetData(object data)
        {
            m_EndStageData = (SkillEndStageData)data;
            if (m_EndStageData != null)
            {
                groupDrawer = new TrackGroupDrawer(GetActionIndex, OnRepaint, ActionCategory.Skill, IsShowDesc);
                groupDrawer.SetData("Group", m_EndStageData.Group);

                breakGroupDrawer = new TrackGroupDrawer(GetActionIndex, OnRepaint, ActionCategory.Skill, IsShowDesc);
                breakGroupDrawer.SetData("Break Group", m_EndStageData.BreakGroup);
            }
            else
            {
                groupDrawer      = null;
                breakGroupDrawer = null;
            }
        }