Пример #1
0
 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);
 }
Пример #2
0
 public static IMovesController CreateMovesController()
 {
     return(MovesController.Create());
 }
Пример #3
0
 private void OnCellMathcingEvent(int cellCount, bool isBonus)
 {
     ScoreController.AddScore(cellCount, isBonus);
     MovesController.DoMove();
 }