Exemplo n.º 1
0
 void Awake()
 {
     test = record.SumOfMaxCoins(fatherCoin.childCount);
     Debug.Log(test);
     record.MaxCoins(fatherCoin.childCount);
     record.CountCoins(0);
 }
Exemplo n.º 2
0
    void OnGUI()
    {
        GUI.TextArea(new  Rect(Screen.width / 2 - 100, Screen.height / 2 - 100, 200, 100), string.Format(@"Вітаю, ви завершили гру
за гру ви зібрали       {0} монет із {1} та {2} секрнетів із  {3} "        , record.IncTotalCoins(false), record.SumOfMaxCoins(-1), record.IncTotalSecrets(false), record.SumOfMaxSecrets(-1)));

        if (GUI.Button(new Rect(new  Rect(Screen.width / 2 - 100, Screen.height / 2, 200, 50)), "Назад"))
        {
            Application.LoadLevel(0);
        }
    }