// Use this for initialization void Start() { thisUnit = GetComponent <Unit>(); thisPlayer = GetComponent <Player>(); grid = FindObjectOfType <GridContructor>(); kdb = new MinotaurMaze.State(grid.initialState); planSteps = new Queue <string>(); kdb.Add("visited", thisUnit.unitPositionText); if (thisPlayer.haveBomb) { grid.problemObjects += "\n\t\t" + "bomb - bomb" + "\n\t\t"; kdb.Add("haveObject", "bomb"); } problemGoal = "(and (atTile " + gameObject.name + " exit))"; //StartPlanner(); }
void Start() { initialState = new MinotaurMaze.State("Initial State"); }