示例#1
0
 private void OnMouseDown()
 {
     MoneyCounter.reduceAmt(MoneyUpDown4D.betAmt);
     numberBought = gt.text;
     WinningNumber.generateNum();
     GameObject.FindGameObjectWithTag("Fader").GetComponent<ScreenFader>().fade("Phone");
 }
示例#2
0
 public static void reduceDays()
 {
     Debug.Log("reloading data");
     daysLeft--;
     QuestStatus.questLoc   = -1;
     QuestStatus.questIndex = -1;
     GameObject.Find("Computer").GetComponent <ComputerData>().reloadData();
     GameObject.Find("TextboxBank").GetComponent <TextBoxBank>().interest();
     if (daysLeft % 3 == 0)
     {
         WinningNumber.generateNum();
     }
 }
示例#3
0
 private void Update()
 {
     amount = textboxMoney.number;
     if (textbox2.selection != 6)
     {
         transform.position = new Vector3(0, 0, 5);
     }
     else
     {
         transform.position = new Vector3(3.08f, -2.039f, -2);
         if (Input.GetKey(KeyCode.Space))
         {
             textbox2.selection = 1;
             MoneyCounter.reduceAmt(amount);
             numberBought = gt.text;
             WinningNumber.generateNum();
             GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader>().fade("Phone");
         }
     }
 }