C# 클래스 RegisterCamera

상속: MonoBehaviour
파일 보기 프로젝트 열기: LilTsubaki/Les-fragments-d-Erule 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
_cameraName string

공개 메소드들

메소드 설명
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.

메소드 상세

CheckMove() 공개 메소드

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

CheckZoom() 공개 메소드

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

MoveTo() 공개 메소드

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.
리턴 void

OnDestroy() 공개 메소드

public OnDestroy ( ) : void
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

ZoomOrthoTo() 공개 메소드

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.
리턴 void

프로퍼티 상세

_cameraName 공개적으로 프로퍼티

The name to register the Camera under.
public string _cameraName
리턴 string