protected override void Execute(List <GameEntity> entities) { foreach (var entity in entities) { if (!GoalHelper.IsInGoal(entity.goalType.Value)) { continue; } entity.AddCollectionStarted(1); WaitHelper.Increase(WaitType.CollectAnimation); } }
protected override void Execute(List <GameEntity> entities) { foreach (var entity in entities) { if (!GoalHelper.IsInGoal(entity.goalType.Value)) { continue; } var layerCount = entity.layer.Value + 1; var explodeAmount = entity.willExplode.Count; var collectAmount = Mathf.Min(layerCount, explodeAmount); entity.AddCollectionStarted(collectAmount); WaitHelper.Increase(WaitType.CollectAnimation); } }