public static Block Instantiate(BlockType type, Coor position)
{
var data = BlockDB._.Find(type);
if (data == null)
{
Debug.LogError("Block for type not exists: " + type);
return null;
}
var obj = (GameObject)GameObject.Instantiate(data.Prefab.gameObject, position.ToVector2(), Quaternion.identity);
return obj.GetComponent<Block>();
}