Exemplo n.º 1
0
 private void Start()
 {
     if (RunTestCase)
     {
         AIMember aiMember = new AGAIMember();
         RootNode root     = TestCase(aiMember);
         Init(aiMember, root);
         StartAI();
     }
 }
Exemplo n.º 2
0
        private void Awake()
        {
            // 可以創建任何 有繼承 AIMemeber的Class 塞進去

            AGAIMember agM = new AGAIMember();

            GameObject cube = GameObject.CreatePrimitive(PrimitiveType.Cube);

            cube.name = "[IM AG TEST CUBE]";
            cube.transform.position = Vector3.zero;
            agM.TestGameObject      = cube;
            _aiMember = agM;

            RootNode root = AITreeHelper.Parser(transform, _aiMember);

            _aiController.Init(_aiMember, root);
            _aiController.StartAI();
        }