private void OnCollisionEnter2D(Collision2D collision) { if (!(collision.gameObject.tag == "baseBlock"))//if its not baseblock { firstBlockbool.resize(); Destroy(collision.gameObject); explode.Play(); } }
private void OnCollisionEnter2D(Collision2D collision) { if (!(collision.gameObject.tag == "baseBlock")) { //if its not baseblock firstBlockbool.resize(); firstBlockbool.collisonsubstracter(); birdsound.Play(); Destroy(collision.gameObject); Destroy(gameObject); print("birdexplode"); firstBlockbool.updatelives(); } }
private void OnCollisionEnter2D(Collision2D collision) { if (!(collision.gameObject.tag == "baseBlock")) { //if its not baseblock firstBlockbool.resize(); Destroy(collision.gameObject); Destroy(gameObject); ; firstBlockbool.updatelivesadd(); } }