BB.BlockDB.Find C# (CSharp) Method

Find() public method

public Find ( BlockType type ) : BlockData
type BlockType
return BlockData
        public BlockData Find(BlockType type)
        {
            BlockData ret;
            if (!_dataDic.TryGetValue(type, out ret))
            {
                Debug.LogError("key " + type + " not exists.");
                return null;
            }
            return ret;
        }