// OnCollisionEnter2D is called when this collider2D/rigidbody2D has begun touching another rigidbody2D/collider2D (2D physics only) public void OnCollisionEnter2D(Collision2D collision) { GooglePlay.ReportLeaderBoardScore((int)transform.position.x); forwardSpeed = 0; flapSpeed = 0; gameObject.GetComponent <Collider2D>().isTrigger = true; Instantiate(explosion, transform.position, Quaternion.identity); SoundManager.ExplosionSound(); EngineSound.Stop(); GameObject.Find("GameManager").GetComponent <GameManager>().EnableDeathButtons(); }