private void OnCollisionEnter(Collision collision) { if (collision.transform.tag == "Hydrant") { game.PissAmount(); if (game.GetPissAmount() > 10) { collision.gameObject.GetComponent <Renderer>().material = gameObject.GetComponent <Renderer>().material; game.Score(); collision.transform.tag = "Done"; game.ResetPiss(); } if (game.GetScore() == 10) { game.Victory(); } } Destroy(gameObject); }