Beispiel #1
0
        public SkillStateMachine(ISkillEntity iSkillEntity)
        {
            skillPreparingState = new SkillPreparingState(this);
            skillSingingState   = new SkillSingingState(this);
            skillReleasingState = new SkillReleasingState(this);
            skillHittingState   = new SkillHittingState(this);

            //设置技能实体类
            this.iSkillEntity = iSkillEntity;

            //技能状态机初始化状态为skillPreparingState
            this.SetSkillState(skillPreparingState);
        }
Beispiel #2
0
 public void SetISkillEntity(ISkillEntity iSkillEntity)
 {
     this.iSkillEntity = iSkillEntity;
 }