Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     //if(Input.GetMouseButtonUp(0))
     //      {
     //          Debug.Log("pembeli Clicked");
     //          GiveOrder();
     //      }
     if (timeLeft <= 0.0f)
     {
         timeLeft = pembeli.WaitingTime;
     }
     else
     {
         timeLeft          -= Time.deltaTime;
         patientTimer.value = timeLeft / pembeli.WaitingTime;
         //Debug.Log(timeLeft);
         if (timeLeft < 0)
         {
             pembeli.Orders();
             GameManagement.WarningText = "Customer is Angry. There is a 200 Coins Penalty!";
             GameManagement.Player.ReduceMoney(200);
         }
     }
     //Debug.Log("here lies" + timeLeft);
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     pembeli = new Pembeli();
     pembeli.Orders();
 }