public void run(bool reverse)
 {
     for (int i = 0; i < moveDefinitions.Length; i++)
     {
         MoveDefinition moveDefinition = moveDefinitions[i];
         float          time           = moveDefinition.animationTime > 0 ? moveDefinition.animationTime : Misc.DEFAULT_ANIMATION_TIME;
         if (!reverse)
         {
             Misc.AnimateMovementTo("move_inspect_item_" + i, moveDefinition.gameObject, moveDefinition.startInspectPosition, time, true);
         }
         else if (moveDefinition.animateReverse)
         {
             Misc.AnimateMovementTo("move_inspect_item_end_" + i, moveDefinition.gameObject, moveDefinition.endInspectPosition, time, true);
         }
     }
 }
Beispiel #2
0
 public MoveModel(MoveDefinition moveDefinition)
 {
     MoveName  = moveDefinition.moveName;
     Power     = moveDefinition.power;
     Accuracy  = moveDefinition.accuracy;
     MaxPP     = CurrentPP = moveDefinition.maxPP;
     HasBuff   = moveDefinition.hasBuff;
     HasDebuff = moveDefinition.hasDebuff;
     Buff      = new Buff()
     {
         BuffType     = moveDefinition.buff,
         BuffStrength = moveDefinition.buffStrength,
         TurnDuration = moveDefinition.buffTurnDuration
     };
     Debuff = new Debuff()
     {
         DebuffType     = moveDefinition.debuff,
         DebuffStrength = moveDefinition.debuffStrength,
         TurnDuration   = moveDefinition.debuffTurnDuration
     };
     MoveType     = moveDefinition.moveType;
     MoveCatagory = moveDefinition.moveCatagory;
 }