Exemple #1
0
 public void FillBowl(Bowl bowl)
 {
     if (Player.changeNeeded == 0)
     {
         if (Input.GetKey(PlayerController.keyAction) && bowl && trocaCollected > 0)
         {
             trocaCollected -= spitSize;
             ChangeSize(-spitSize);
             bowl.ChangeFullness(spitSize);
         }
         else
         {
             rb.constraints             = RigidbodyConstraints.FreezeRotation;
             PlayerController.currState = PlayerController.State.NONE;
         }
     }
 }