// Update is called once per frame void FixedUpdate() { if (Input.GetKeyDown(KeyCode.Q) && checkPlatform) { paintBar.LosePaint(quantityPaintLose); splashPaintController.SetTrigger("Splash"); Paint(); if (paintBar.GetQuantityPaint() <= 0) { PlayerMain.Restart(); } } }