void OnCollisionEnter(Collision collision) { if (collision.gameObject.CompareTag("Player")) { source.PlayOneShot(blockSound); sys.GameOver(); Renderer r = gameObject.GetComponent <Renderer> (); r.material.color = Color.red; } }