コード例 #1
0
 // Token: 0x06001F97 RID: 8087 RVA: 0x00182FB4 File Offset: 0x001811B4
 private void Update()
 {
     if (this.isPaused)
     {
         return;
     }
     Chef.ChefState chefState = this.state;
     if (chefState != Chef.ChefState.Queueing)
     {
         if (chefState != Chef.ChefState.Cooking)
         {
             return;
         }
         if (this.timeToFinishDish <= 0f)
         {
             this.state = Chef.ChefState.Delivering;
             this.animator.SetTrigger("PlateCooked");
             this.cookMeter.gameObject.SetActive(false);
             return;
         }
         this.timeToFinishDish -= Time.deltaTime;
         this.cookMeter.SetFill(1f - this.timeToFinishDish / (this.currentPlate.cookTimeMultiplier * this.cookTime));
     }
     else if (this.cookQueue.Count > 0)
     {
         this.currentPlate     = Chef.GrabFromQueue();
         this.timeToFinishDish = this.currentPlate.cookTimeMultiplier * this.cookTime;
         this.state            = Chef.ChefState.Cooking;
         this.cookMeter.gameObject.SetActive(true);
         return;
     }
 }
コード例 #2
0
 public void Queue()
 {
     this.state = Chef.ChefState.Queueing;
 }