示例#1
0
    private void GetBlock()
    {
        Block block = World.Get(TargetBlock());

        if (block == null)
        {
            return;
        }
        selected = Resources.Load <GameObject>("Blocks/" + block.name).GetComponent <Block>();
        hotbar.Add(selected);
        hotbar.Select(selected);
    }