コード例 #1
0
ファイル: QueryUnitTest.cs プロジェクト: 675492062/behaviac
        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<AgentNodeTest>();
            testAgent.init();
        }
コード例 #2
0
        public void initGlobalTestEnv()
        {
            BehaviacSystem.Instance.Init();

            GameObject testAgentObject = new GameObject();

            testAgentObject.name = "@Agent_0";
            testAgentObject.transform.localPosition = Vector3.zero;
            testAgentObject.transform.localRotation = Quaternion.identity;
            testAgentObject.transform.localScale    = Vector3.one;
            parTestAgent = testAgentObject.AddComponent <EmployeeParTestAgent>();
            parTestAgent.init();

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

            //			testAgentObject = new GameObject();
            //			testAgentObject.name = "@NodeTestAgent_0";
            //			testAgentObject.transform.localPosition = Vector3.zero;
            //			testAgentObject.transform.localRotation = Quaternion.identity;
            //			testAgentObject.transform.localScale = Vector3.one;
            //			nodeTestAgent_0 = testAgentObject.AddComponent<AgentNodeTest>();
            //			nodeTestAgent_0.init();
            //
            //			testAgentObject = new GameObject();
            //			testAgentObject.name = "@ParTestAgent_0";
            //			testAgentObject.transform.localPosition = Vector3.zero;
            //			testAgentObject.transform.localRotation = Quaternion.identity;
            //			testAgentObject.transform.localScale = Vector3.one;
            //			parTestAgent_0 = testAgentObject.AddComponent<ParTestAgent>();
            //			parTestAgent_0.initAgent();
            //
            //			testAgentObject = new GameObject();
            //			testAgentObject.name = "@ParTestAgent_1";
            //			testAgentObject.transform.localPosition = Vector3.zero;
            //			testAgentObject.transform.localRotation = Quaternion.identity;
            //			testAgentObject.transform.localScale = Vector3.one;
            //			parTestAgent_1 = testAgentObject.AddComponent<ParTestAgent>();
            //			parTestAgent_1.initAgent();
            //
            //			testAgentObject = new GameObject();
            //			testAgentObject.name = "@ParTestAgent_2";
            //			testAgentObject.transform.localPosition = Vector3.zero;
            //			testAgentObject.transform.localRotation = Quaternion.identity;
            //			testAgentObject.transform.localScale = Vector3.one;
            //			parTestAgent_2 = testAgentObject.AddComponent<ParTestAgent>();
            //			parTestAgent_2.initAgent();
        }
コード例 #3
0
ファイル: QueryUnitTest.cs プロジェクト: raptoravis/behaviac1
		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<AgentNodeTest>();			
			testAgent.init();
		}
コード例 #4
0
ファイル: OtherUnitTest.cs プロジェクト: KeyleXiao/behaviac
        public void initGlobalTestEnv()
        {
            BehaviacSystem.Instance.init();

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

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

            //			testAgentObject = new GameObject();
            //			testAgentObject.name = "@NodeTestAgent_0";
            //			testAgentObject.transform.localPosition = Vector3.zero;
            //			testAgentObject.transform.localRotation = Quaternion.identity;
            //			testAgentObject.transform.localScale = Vector3.one;
            //			nodeTestAgent_0 = testAgentObject.AddComponent<AgentNodeTest>();
            //			nodeTestAgent_0.init();
            //
            //			testAgentObject = new GameObject();
            //			testAgentObject.name = "@ParTestAgent_0";
            //			testAgentObject.transform.localPosition = Vector3.zero;
            //			testAgentObject.transform.localRotation = Quaternion.identity;
            //			testAgentObject.transform.localScale = Vector3.one;
            //			parTestAgent_0 = testAgentObject.AddComponent<ParTestAgent>();
            //			parTestAgent_0.initAgent();
            //
            //			testAgentObject = new GameObject();
            //			testAgentObject.name = "@ParTestAgent_1";
            //			testAgentObject.transform.localPosition = Vector3.zero;
            //			testAgentObject.transform.localRotation = Quaternion.identity;
            //			testAgentObject.transform.localScale = Vector3.one;
            //			parTestAgent_1 = testAgentObject.AddComponent<ParTestAgent>();
            //			parTestAgent_1.initAgent();
            //
            //			testAgentObject = new GameObject();
            //			testAgentObject.name = "@ParTestAgent_2";
            //			testAgentObject.transform.localPosition = Vector3.zero;
            //			testAgentObject.transform.localRotation = Quaternion.identity;
            //			testAgentObject.transform.localScale = Vector3.one;
            //			parTestAgent_2 = testAgentObject.AddComponent<ParTestAgent>();
            //			parTestAgent_2.initAgent();
        }