Exemple #1
0
 public override void Enter(object[] obj)
 {
     model      = Manage.Instance.Data.GetObj <EquipmentAttribute>(owner.CurrentUnit.DataModel.dataModel.weapon[0]);
     TargetCell = null;
     if (obj.Length > 0)
     {
         TargetCell = obj[0] as HexCell;
         OnAtk();
         return;
     }
     FindAtkRange(model.GetValue(DataEnum.maxatkRange), model.GetValue(DataEnum.minatkRange));
     if (atkRange.Count == 0)
     {
         UpdatePrompt("范围内没有可以攻击的目标");
     }
     else
     {
         UpdatePrompt("选择一个攻击目标");
     }
     base.Enter(obj);
 }
        SkillAttribute SeleAction()
        {
            //List<SkillAttribute> AllSkill = new List<SkillAttribute>();
            //var _arraySkill = unit.DataModel.dataModel.skillArray;
            //for (int i = 0; i < _arraySkill.Length; i++)
            //{
            //    for (int j = 0; j < _arraySkill[i].skillAry.Count; j++)
            //    {
            //        AllSkill.Add(Manage.Instance.Data.GetObj<SkillAttribute>(_arraySkill[i].skillAry[j]));
            //    }
            //}
            //Unit targetUnit = owner.Unitmanager.GetMaxValue(owner.CurrentUnit);

            //暂时不用技能  直接攻击
            EquipmentAttribute eq = Manage.Instance.Data.GetObj <EquipmentAttribute>(owner.CurrentUnit.DataModel.dataModel.weapon[0]);

            move_minRange = 0;
            move_maxRange = unit.CurrentAP - eq.UseAP;
            atk_minRange  = eq.GetValue(DataEnum.minatkRange);
            atk_maxRange  = eq.GetValue(DataEnum.maxatkRange);
            return(null);
        }