static public Entity GetFromModelEntityDictionary (this GameObjectConversionSystem gcs, GameObject topGameObject) { gcs.GetSingleton <ModelEntityDictionary.Data>().ModelDictionary.TryGetValue(topGameObject, out var entity); return(entity); }
static public Mesh GetFromStructureMeshDictionary (this GameObjectConversionSystem gcs, GameObject topGameObject) { var isExits = gcs.GetSingleton <StructureMeshDictionary.Data>().MeshDictionary .TryGetValue(topGameObject, out var mesh); return(mesh); }
static public void AddToStructureMeshDictionary (this GameObjectConversionSystem gcs, GameObject topGameObject, Mesh mesh) { //Debug.Log("addst"); //Debug.Log(gcs); //Debug.Log(gcs.GetSingleton<StructureMeshDictionary.Data>()); //Debug.Log(gcs.GetSingleton<StructureMeshDictionary.Data>().MeshDictionary); gcs.GetSingleton <StructureMeshDictionary.Data>().MeshDictionary.Add(topGameObject, mesh); }
static public bool IsExistingInStructureMeshDictionary (this GameObjectConversionSystem gcs, GameObject topGameObject) { return(gcs.GetSingleton <StructureMeshDictionary.Data>().MeshDictionary .ContainsKey(topGameObject)); }
static public bool IsExistsInModelEntityDictionary (this GameObjectConversionSystem gcs, GameObject topGameObject) => gcs.GetSingleton <ModelEntityDictionary.Data>().ModelDictionary.ContainsKey(topGameObject);
static public void AddToModelEntityDictionary (this GameObjectConversionSystem gcs, GameObject topGameObject, Entity entity) => gcs.GetSingleton <ModelEntityDictionary.Data>().ModelDictionary.Add(topGameObject, entity);