コード例 #1
0
        static public Entity GetFromModelEntityDictionary
            (this GameObjectConversionSystem gcs, GameObject topGameObject)
        {
            gcs.GetSingleton <ModelEntityDictionary.Data>().ModelDictionary.TryGetValue(topGameObject, out var entity);

            return(entity);
        }
コード例 #2
0
        static public Mesh GetFromStructureMeshDictionary
            (this GameObjectConversionSystem gcs, GameObject topGameObject)
        {
            var isExits = gcs.GetSingleton <StructureMeshDictionary.Data>().MeshDictionary
                          .TryGetValue(topGameObject, out var mesh);

            return(mesh);
        }
コード例 #3
0
 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);
 }
コード例 #4
0
 static public bool IsExistingInStructureMeshDictionary
     (this GameObjectConversionSystem gcs, GameObject topGameObject)
 {
     return(gcs.GetSingleton <StructureMeshDictionary.Data>().MeshDictionary
            .ContainsKey(topGameObject));
 }
コード例 #5
0
 static public bool IsExistsInModelEntityDictionary
     (this GameObjectConversionSystem gcs, GameObject topGameObject) =>
 gcs.GetSingleton <ModelEntityDictionary.Data>().ModelDictionary.ContainsKey(topGameObject);
コード例 #6
0
 static public void AddToModelEntityDictionary
     (this GameObjectConversionSystem gcs, GameObject topGameObject, Entity entity) =>
 gcs.GetSingleton <ModelEntityDictionary.Data>().ModelDictionary.Add(topGameObject, entity);