Exemplo n.º 1
0
    public void SetPrompt(int index, Prompts prompts, bool quickSpin)
    {
        var prompt = prompts.GetPrompt(index);

        for (var i = 0; i < 6; i++)
        {
            buttonManagers[i].SetText(prompt[i], quickSpin); // Object reference not set error
        }
    }
Exemplo n.º 2
0
 public void Yes()
 {
     if (money - Price >= 0)
     {
         money -= Price;
         PlayerPrefs.SetInt("money", money);
         MoneyText.text = money.ToString();
         Prompts.GetPrompt();
         gameObject.SetActive(false);
         Timer.Run();
         TouchController.SetActive(true);
         MainMoneyText.text = money.ToString();
     }
 }