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<FSMAgentTest>(); testAgent.init(); testAgentObject = new GameObject(); testAgentObject.name = "@UnitTestBtAgent"; testAgentObject.transform.localPosition = Vector3.zero; testAgentObject.transform.localRotation = Quaternion.identity; testAgentObject.transform.localScale = Vector3.one; testBtAgent = testAgentObject.AddComponent<AgentNodeTest>(); testBtAgent.init(); //Debug.Log("InitTestFixture"); }
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 <FSMAgentTest>(); testAgent.init(); testAgentObject = new GameObject(); testAgentObject.name = "@UnitTestBtAgent"; testAgentObject.transform.localPosition = Vector3.zero; testAgentObject.transform.localRotation = Quaternion.identity; testAgentObject.transform.localScale = Vector3.one; testBtAgent = testAgentObject.AddComponent <AgentNodeTest>(); testBtAgent.init(); //Debug.Log("InitTestFixture"); }