示例#1
0
    //-----------------------------------------------------COLLISION FUNCTIONS---------------------------------------------------------------------------------

    virtual public void Land()
    {
        isInAir = false;

        GameObject        handler = GameObject.FindGameObjectWithTag("GameHandler");
        GameHandlerScript hand    = handler.GetComponent <GameHandlerScript>();

        hand.BlockLanded();
        hand.spawner.shooting = false;
    }
示例#2
0
    override public void Land()
    {
        isInAir = false;

        enabled = false;


        handler = GameObject.FindGameObjectWithTag("GameHandler");
        GameHandlerScript hand = handler.GetComponent <GameHandlerScript>();

        hand.BlockLanded();
        hand.spawner.shooting = false;

        grid.AddBlockToGrid(this);
        blockPos = grid.FindGridPosition(this);
        int x, y;

        x = (int)(blockPos.x);
        y = (int)(blockPos.y);
        SpecialTrigger(x, y);
    }