Exemplo n.º 1
0
 void onClickBtLowerPriority(Button button)
 {
     Debug.log("------ Enabled Behavior Tree LowerPriority Abort ------");
     disableAllAI();
     _miner.buildLowerPriorityAbortTree();
     _miner.setEnabled(true);
 }
Exemplo n.º 2
0
        public override void render(Graphics graphics, Camera camera)
        {
            IMGUI.beginWindow((Screen.width / 2) - 100, (Screen.height / 2) - 90, 200, 180);

            if (IMGUI.button("BT: LowerPriority Abort Tree"))
            {
                Debug.log("------ Enabled Behavior Tree LowerPriority Abort ------");
                disableAllAI();
                _miner.buildLowerPriorityAbortTree();
                _miner.setEnabled(true);
            }

            if (IMGUI.button("BT: Self Abort Tree"))
            {
                Debug.log("------ Enabled Behavior Tree Self Abort ------");
                disableAllAI();
                _miner.buildSelfAbortTree();
                _miner.setEnabled(true);
            }

            if (IMGUI.button("Utility AI"))
            {
                Debug.log("------ Enabled Utility AI ------");
                disableAllAI();
                _utilityMiner.setEnabled(true);
            }

            if (IMGUI.button("GOAP"))
            {
                Debug.log("------ Enabled GOAP ------");
                disableAllAI();
                _goapMiner.setEnabled(true);
            }

            IMGUI.space(20);
            if (IMGUI.button("Stop AI"))
            {
                disableAllAI();
            }

            IMGUI.endWindow();
        }