Esempio n. 1
0
    public string GetBlockId(UBlockly.Block block)
    {
        while (!blockIDs.ContainsKey(block))
        {
            var blockId = block.Type + "_" + SimvaPlugin.SimvaApi <IStudentsApi> .GenerateRandomBase58Key(4);

            if (!blockIDs.ContainsValue(blockId))
            {
                blockIDs.Add(block, blockId);
            }
        }
        return(blockIDs[block]);
    }