Fixed indentation.

This commit is contained in:
Randall 2017-11-09 14:54:12 -06:00
parent 6d229ffbfa
commit d7a03d4267

View file

@ -6,14 +6,14 @@ public class GuardController : Photon.PunBehaviour {
public Text cameraStatusText; public Text cameraStatusText;
const float CAMERA_SENSITIVITY = 120.0f; const float CAMERA_SENSITIVITY = 120.0f;
private int mCurrentCamera; // -1 means preview mode private int mCurrentCamera; // -1 means preview mode
private List<GuardCamera> mCameras; private List<GuardCamera> mCameras;
private bool mInControl; private bool mInControl;
void Start() void Start()
{ {
// Fetch all cameras // Fetch all cameras
mCameras = new List<GuardCamera>(); mCameras = new List<GuardCamera>();
@ -127,7 +127,7 @@ public class GuardController : Photon.PunBehaviour {
{ {
UpdateSingle(); UpdateSingle();
} }
} }
void UpdatePreviewMode() void UpdatePreviewMode()
{ {
@ -205,5 +205,5 @@ public class GuardController : Photon.PunBehaviour {
float xRotation = Time.deltaTime * Input.GetAxis("Horizontal") * CAMERA_SENSITIVITY; float xRotation = Time.deltaTime * Input.GetAxis("Horizontal") * CAMERA_SENSITIVITY;
float yRotation = Time.deltaTime * -Input.GetAxis("Vertical") * CAMERA_SENSITIVITY; float yRotation = Time.deltaTime * -Input.GetAxis("Vertical") * CAMERA_SENSITIVITY;
GetCurrentGuardCamera().Rotate(xRotation, yRotation); GetCurrentGuardCamera().Rotate(xRotation, yRotation);
} }
} }