public void Setup() { agent = new GameObject(); controller = agent.AddComponent <PlanarSteeringController>(); behaviour = agent.AddComponent <DotToTransform>(); controller.steeringParameters = new PlanarSteeringParameters(); controller.steeringParameters.ContextMapResolution = 4; controller.steeringParameters.ContextMapRotationAxis = RotationAxis.YAxis; TestUtilities.CallNonPublicMethod <ICombineContext>(controller, "SetContextCombinator", new BasicContextCombinator()); TestUtilities.CallNonPublicMethod <IDecideDirection>(controller, "SetDirectionDecider", new BasicPlanarDirectionPicker(true, controller.steeringParameters)); behaviour.BehaviourName = "Test behaviour"; target = new GameObject(); target.transform.position = new Vector3(0, 0, 5); behaviour.Positions = new Transform[] { target.transform }; controller.Awake(); }