Drop() public method

public Drop ( ) : void
return void
Exemplo n.º 1
0
    //If the player is trying to shove objects through the map, make them drop it.
    void DropIt(GameObject drop)
    {
        DragDrop dropMe = drop.GetComponent <DragDrop>();

        if (dropMe)
        {
            dropMe.Drop();
        }
    }