public void Init(LevelModel level) { _levelModel = level; ScoreController.Init(level.StarScoreData); GameField.Init(_levelModel.GameFieldRawData.ToArray(), level.AvailableBlocks); BonusesController.Init(level.BonusModel, level.AvailableBonuses); MovesController.Init(level.MovesAmount, GameConstants.MovesData.MOVES_WARNING); Goals.Init(level.GoalData); }
public static IMovesController CreateMovesController() { return(MovesController.Create()); }
private void OnCellMathcingEvent(int cellCount, bool isBonus) { ScoreController.AddScore(cellCount, isBonus); MovesController.DoMove(); }