예제 #1
0
        public void initGlobalTestEnv() {
            BehaviacSystem.Instance.Init();

            GameObject testAgentObject = new GameObject();
            testAgentObject.name = "@UnitTestAgent";
            testAgentObject.transform.localPosition = Vector3.zero;
            testAgentObject.transform.localRotation = Quaternion.identity;
            testAgentObject.transform.localScale = Vector3.one;
            testAgent = testAgentObject.AddComponent<HTNAgentTravel>();
            testAgent.init();

            //Debug.Log("InitTestFixture");
        }
예제 #2
0
        public void initGlobalTestEnv()
        {
            BehaviacSystem.Instance.Init();

            GameObject testAgentObject = new GameObject();

            testAgentObject.name = "@UnitTestAgent";
            testAgentObject.transform.localPosition = Vector3.zero;
            testAgentObject.transform.localRotation = Quaternion.identity;
            testAgentObject.transform.localScale    = Vector3.one;
            testAgent = testAgentObject.AddComponent <HTNAgentTravel>();
            testAgent.init();

            //Debug.Log("InitTestFixture");
        }