Exemple #1
0
    public override void GenerateGame()
    {
        CleanGrid();

        _currentStage = -1;
        _targetScore  = 0;
        _currentScore = 0;
        _matchState   = new TileMatchState();
        StartButton.SetActive(true);
    }
Exemple #2
0
 public bool OnTileFlip(MatchTile tile)
 {
     if (_matchState.HasPotentialMatch)
     {
         StartCoroutine(VerifyTiles(_matchState.Tile, tile));
         _matchState = new TileMatchState();
     }
     else
     {
         _matchState = new TileMatchState(tile);
     }
     return(true);
 }