Example #1
0
 public override void Init(UnitEntity entity, UnitEntity[] targets, UnitAbility context)
 {
     base.Init(entity, targets, context);
     condition.Init(entity, targets, context);
     whenTrue.ForEach(a => a.Init(entity, targets, context));
     whenFalse.ForEach(a => a.Init(entity, targets, context));
 }
Example #2
0
 public override void Init(UnitEntity entity, UnitEntity[] targets, UnitAbility context)
 {
     base.Init(entity, targets, context);
     if (calculateType == CalculateType.ActionResult)
     {
         action.Init(entity, targets, context);
     }
 }
Example #3
0
 public override void Init(UnitEntity entity, UnitEntity[] targets, UnitAbility context)
 {
     base.Init(entity, targets, context);
     if (aValueType == ValueType.ActionValue)
     {
         aValue.Init(entity, targets, context);
     }
     if (bValueType == ValueType.ActionValue)
     {
         bValue.Init(entity, targets, context);
     }
 }
Example #4
0
 public override void Init(UnitEntity entity, UnitEntity[] targets, UnitAbility context)
 {
     base.Init(entity, targets, context);
     action.Init(entity, targets, context);
 }