public void FillCan() { if (Player.changeNeeded == 0) { if (Input.GetKey(PlayerController.keyAction) && trocaCollected > 0) { trocaCollected -= spitSize; ChangeSize(-spitSize); spitCan.ChangeSize(spitSize - firstTime); if (firstTime == 1) { firstTime = 0; } } else { spitCan = null; rb.constraints = RigidbodyConstraints.FreezeRotation; PlayerController.currState = PlayerController.State.NONE; } } }