Example #1
0
 internal void ResetAllCamera(Vector2 pos)
 {
     CameraState camerastate2D = machine.getState(CameraState2D.NAME);
     camerastate2D.ResetCameraData(pos);
     CameraState camerastate3D = machine.getState(CameraState3D.NAME);
     camerastate3D.ResetCameraData(pos);
     if (inputMachine.currentInputIs2D)
     {
         camerastate2D.ResetCamera(null);
     }
     else
     {
         camerastate3D.ResetCamera(null);
     }
 }