C# Class RegisterCamera

Inheritance: MonoBehaviour
Datei anzeigen Open project: LilTsubaki/Les-fragments-d-Erule Class Usage Examples

Public Properties

Property Type Description
_cameraName string

Public Methods

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.

Method Details

CheckMove() public method

Checks if the Camera has to be moved and changes its position if needed.
public CheckMove ( ) : void
return void

CheckZoom() public method

Checks if the Camera has to be zoomed and changes its orthographic size if needed.
public CheckZoom ( ) : void
return void

MoveTo() public method

Changes the state of the Camera in order to make it move.
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

OnDestroy() public method

public OnDestroy ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

ZoomOrthoTo() public method

Changes the state of the Camera in order to make it zoom. Only with orthographic Cameras.
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

Property Details

_cameraName public_oe property

The name to register the Camera under.
public string _cameraName
return string