예제 #1
0
파일: Resource.cs 프로젝트: jamioflan/LD41
    public void PutInRoom(TileBase room)
    {
        // Drop it
        Drop();

        // Unclaim it
        if (isClaimed)
        {
            Unclaim();
        }

        // Now we are clear to store it
        room.StoreResource(this);
        holder = room;
    }