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"); }
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"); }