Exemple #1
0
 public void Restart()
 {
     tileList.Restart();
     SetFirstTouch(true);
     tiles          = tileList.GetTileList();
     numWinTiles    = 0;
     completedTiles = 0;
     HowManyWinTiles();
 }
Exemple #2
0
    public string FinalCalculation()
    {
        // Point Modifier = For Each Win Tile, (Win Tile - 10) / 100
        int pointMultiplier = 0;

        int[]  winningTiles = tileList.winningTiles;
        Tile[] tiles        = tileList.GetTileList();
        for (int i = 0; i < winningTiles.Length; i++)
        {
            pointMultiplier += (Convert.ToInt32(tiles[winningTiles[i]].Value.text) - 10) / 10;
        }

        finalScore = points + (points * pointMultiplier);

        return(finalScore.ToString());
    }