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)); }
public override void Init(UnitEntity entity, UnitEntity[] targets, UnitAbility context) { base.Init(entity, targets, context); if (calculateType == CalculateType.ActionResult) { action.Init(entity, targets, context); } }
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); } }
public override void Init(UnitEntity entity, UnitEntity[] targets, UnitAbility context) { base.Init(entity, targets, context); action.Init(entity, targets, context); }