Esempio n. 1
0
 private void Update()
 {
     if (Input.GetKey(KeyCode.E) && triggerable)
     {
         tracker.AddObject(gameObject);
         if (tracker.timeUsed + timeValue <= Tracking.MAX_TIME)
         {
             Debug.Log("Time units used: " + tracker.AddUsedTime(timeValue));
             UseComputer();
         }
         else
         {
             Debug.Log("Not enough time to use object! Time remaining: " + (24 - tracker.timeUsed));
         }
     }
 }