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