Exemplo n.º 1
0
    public void ShowGameOver()
    {
        dataRecord.ConvertToJasonAndSave();

        gameOverUI.SetActive(true);

        Dictionary <string, object> temp = gameControl.GetDictionary();
        string result = "Time Taken \n ______________ \n";

        int count = 0;

        foreach (KeyValuePair <string, object> item in temp)
        {
            result += "\n";
            result += item.Key + "=" + item.Value;
            count++;
            if (count % 3 == 0)
            {
                result += "\n";
            }
            else
            {
                result += "\t";
            }
        }

        gameOverText.text = result;
    }