コード例 #1
0
ファイル: water.cs プロジェクト: apant12/Skyline-Stacker
        private void OnCollisionEnter2D(Collision2D collision)

        {
            if (!(collision.gameObject.tag == "baseBlock"))//if its not baseblock
            {
                firstBlockbool.resize();
                Destroy(collision.gameObject);
                explode.Play();
            }
        }
コード例 #2
0
    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();
        }
    }
コード例 #3
0
    private void OnCollisionEnter2D(Collision2D collision)

    {
        if (!(collision.gameObject.tag == "baseBlock"))
        {
            //if its not baseblock

            firstBlockbool.resize();


            Destroy(collision.gameObject);


            Destroy(gameObject);
            ;

            firstBlockbool.updatelivesadd();
        }
    }