void OnCollisionEnter(Collision col) { if (col.gameObject.tag == "obstacle") { TimeManager.slowMotion(); Instantiate(boom, gameObject.transform.position, gameObject.transform.rotation); TimeManager.endGame(); Destroy(gameObject); Destroy(col.gameObject); } }