Example #1
0
    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);
    }
Example #2
0
 public PddlObject(string objectName, PddlType objectType)
 {
     this.objectName = objectName;
     this.objectType = objectType;
 }