public void SetUp() { // create player and camera mock Mock = GameObject.Instantiate(Resources.Load <GameObject>("Prefabs/Player_Mock")).transform; CameraTransform = Mock.Find("FPV"); // First-Person-Camera Controller = new FirstPersonCamera(Mock, 0f); // set SPEED System.Reflection.FieldInfo info = Controller.GetType().GetField("SPEED", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance); info.SetValue(Controller, SPEED); }