Exemplo n.º 1
0
    // 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();
    }
Exemplo n.º 2
0
 void Start()
 {
     initialState = new MinotaurMaze.State("Initial State");
 }