Property | Type | Description | |
---|---|---|---|
_cameraName | string |
Method | Description | |
---|---|---|
CheckMove ( ) : void |
Checks if the Camera has to be moved and changes its position if needed.
|
|
CheckZoom ( ) : void |
Checks if the Camera has to be zoomed and changes its orthographic size if needed.
|
|
MoveTo ( Vector3 pos, float speed ) : void |
Changes the state of the Camera in order to make it move.
|
|
OnDestroy ( ) : void | ||
Start ( ) : void | ||
Update ( ) : void | ||
ZoomOrthoTo ( float orthoSize, float speed ) : void |
Changes the state of the Camera in order to make it zoom. Only with orthographic Cameras.
|
public MoveTo ( Vector3 pos, float speed ) : void | ||
pos | Vector3 | The destination of the Camera. |
speed | float | The duration of the movement, in seconds. |
return | void |
public ZoomOrthoTo ( float orthoSize, float speed ) : void | ||
orthoSize | float | The wanted final orthographic size. |
speed | float | The duration of the zoom, in seconds. |
return | void |