Class MouseController
Inheritance
object
MouseController
Namespace: AS2
Assembly: .dll
Syntax
public class MouseController : MonoBehaviour
Constructors
|
Edit this page
View Source
MouseController()
Declaration
Fields
|
Edit this page
View Source
cam
Declaration
Field Value
|
Edit this page
View Source
cameraMoveSpeedKeyboard
Declaration
public float cameraMoveSpeedKeyboard
Field Value
|
Edit this page
View Source
curCamRotation
Declaration
private Quaternion curCamRotation
Field Value
Type |
Description |
Quaternion |
|
|
Edit this page
View Source
currFramePosition
Declaration
private Vector3 currFramePosition
Field Value
|
Edit this page
View Source
desiredHeightOfSquare
Declaration
private int desiredHeightOfSquare
Field Value
|
Edit this page
View Source
diff
Declaration
Field Value
|
Edit this page
View Source
diffSmooth
Declaration
private Vector3 diffSmooth
Field Value
|
Edit this page
View Source
diffSmoothNormalized60FPS
Declaration
private Vector3 diffSmoothNormalized60FPS
Field Value
|
Edit this page
View Source
instance
Declaration
public static MouseController instance
Field Value
|
Edit this page
View Source
lastFramePosition
Declaration
private Vector3 lastFramePosition
Field Value
|
Edit this page
View Source
maxHeightOfSquare
Declaration
public int maxHeightOfSquare
Field Value
|
Edit this page
View Source
maxOrthographicSize
Declaration
public float maxOrthographicSize
Field Value
|
Edit this page
View Source
minHeightOfSquare
Declaration
public int minHeightOfSquare
Field Value
|
Edit this page
View Source
minOrthographicSize
Declaration
public float minOrthographicSize
Field Value
|
Edit this page
View Source
movementLocked
Declaration
public bool movementLocked
Field Value
|
Edit this page
View Source
orthographicSizeCurrentVelocity
Declaration
private float orthographicSizeCurrentVelocity
Field Value
|
Edit this page
View Source
orthographicSizeTarget
Declaration
private float orthographicSizeTarget
Field Value
|
Edit this page
View Source
pixelDivisionConstant
Declaration
public int pixelDivisionConstant
Field Value
|
Edit this page
View Source
squarePixelSize
Declaration
public int squarePixelSize
Field Value
|
Edit this page
View Source
updateManually
Declaration
public bool updateManually
Field Value
|
Edit this page
View Source
useSystemNr
Declaration
Field Value
Methods
|
Edit this page
View Source
LockCameraMovement()
Declaration
public void LockCameraMovement()
|
Edit this page
View Source
SetCameraPosition(float, float)
Sets the position of the camera.
Declaration
public void SetCameraPosition(float x, float y)
Parameters
Type |
Name |
Description |
float |
x |
The world x coordinate.
|
float |
y |
The world y coordinate.
|
|
Edit this page
View Source
SetOrthographicSize(float)
Sets the orthographic size of the camera.
Declaration
public void SetOrthographicSize(float targetSize)
Parameters
Type |
Name |
Description |
float |
targetSize |
The new size of the camera,
measured in world space units as half of the viewport's height.
Will be clamped between minOrthographicSize and
maxOrthographicSize.
|
|
Edit this page
View Source
Start()
Declaration
|
Edit this page
View Source
UnlockCameraMovement()
Declaration
public void UnlockCameraMovement()
|
Edit this page
View Source
Update()
Declaration
|
Edit this page
View Source
UpdateCameraMovement()
Declaration
private void UpdateCameraMovement()
|
Edit this page
View Source
UpdateLogic()
Declaration
public void UpdateLogic()
|
Edit this page
View Source
UpdateManually()
Declaration
public void UpdateManually()