Drop() public method

public Drop ( ) : void
return void
コード例 #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();
        }
    }