public GameObject GetPrefabWithType(PddlType type) { var index = typesToDefine.FindIndex(a => a.Contains(type.typeName)); var definedIndex = typesDefined.FindIndex(t => t == index); return(index != -1 ? typesGameObject[definedIndex] : null); }
public PddlObject(string objectName, PddlType objectType) { this.objectName = objectName; this.objectType = objectType; }