Пример #1
0
        public Type GetActionType(GuideStepData stepData)
        {
            switch (stepData.stepType)
            {
            case GuideStepType.Group:
                GuideGroupData groupData = (GuideGroupData)stepData;
                switch (groupData.groupType)
                {
                case GuideGroupType.Sequence:
                    return(typeof(GuideSequenceGroupAction));

                    break;

                case GuideGroupType.Parallel:
                    return(typeof(GuideParallelGroupAction));

                    break;
                }
                break;
            }

            if (actionConfig.ContainsKey(stepData.stepType))
            {
                return(actionConfig[stepData.stepType]);
            }
            else
            {
                return(typeof(GuideStepAction));
            }
        }
Пример #2
0
        public virtual void PlayChild(GuideStepData stepData)
        {
            GuideStepAction action = Guide.actionManager.CreateAction(stepData);

            action.SetData(stepData);
            action.Enter();
        }
Пример #3
0
 public virtual void SetData(GuideStepData data)
 {
     this.data   = data;
     stepIndex   = data.stepIndex;
     describe    = data.describe;
     data.action = this;
 }
 override public void OnChildEnd(GuideStepData childData)
 {
     childEndCount++;
     if (childEndCount == groupData.stepList.Count)
     {
         End();
     }
 }
 override public void CheckChild()
 {
     if (index < groupData.stepList.Count)
     {
         GuideStepData stepData = groupData.stepList[index];
         PlayChild(stepData);
         index++;
     }
     else
     {
         End();
     }
 }
 public override void SetData(GuideStepData data)
 {
     sendData = (GuideStepData_ExeSendArm)data;
     base.SetData(data);
 }
Пример #7
0
 public override void SetData(GuideStepData data)
 {
     listenerData = (GuideStepListenerData)data;
     base.SetData(data);
 }
 public override void SetData(GuideStepData data)
 {
     sayData = (GuideStepData_TeacherSay)data;
     base.SetData(data);
 }
Пример #9
0
 public override void SetData(GuideStepData data)
 {
     mdata = (GuideStepData_CloseFreezedSolider)data;
     base.SetData(data);
 }
Пример #10
0
 public override void SetData(GuideStepData data)
 {
     mdata = (GuideStepListenerData_ExeUseSkill)data;
     base.SetData(data);
 }
Пример #11
0
 public GuideGroupData Add(GuideStepData stepData)
 {
     stepList.Add(stepData);
     return(this);
 }
Пример #12
0
 /** 播放步奏 */
 public void PlayStep(GuideStepData stepData)
 {
     this.stepData = stepData;
 }
Пример #13
0
 public virtual void OnChildEnd(GuideStepData childData)
 {
 }
Пример #14
0
 public override void SetData(GuideStepData data)
 {
     mdata = (GuideStepData_UseSkill)data;
     base.SetData(data);
 }
Пример #15
0
 public override void SetData(GuideStepData data)
 {
     mdata = (GuideStepData_ScreenMaskDraw)data;
     base.SetData(data);
 }
Пример #16
0
        public GuideStepAction CreateAction(GuideStepData stepData)
        {
            Type type = GetActionType(stepData);

            return((GuideStepAction)Guide.go.AddComponent(type));
        }
 public override void SetData(GuideStepData data)
 {
     panelData = (GuideStepData_Panel)data;
     base.SetData(data);
 }
 override public void OnChildEnd(GuideStepData childData)
 {
     CheckChild();
 }
Пример #19
0
 public override void SetData(GuideStepData data)
 {
     mdata = (GuideStepData_LoackGuide)data;
     base.SetData(data);
 }
Пример #20
0
 public override void SetData(GuideStepData data)
 {
     this.groupData = (GuideGroupData)data;
     base.SetData(data);
 }