C# 클래스 Duality.Time

The Time class provides a global interface for time measurement and control. It affects all time-dependent computations. Use the TimeMult Property to make your own computations time-dependent instead of frame-dependent. Otherwise, your game logic will depend on how many FPS the player's machine achieves and mit behave differently on very slow or fast machines.
파일 보기 프로젝트 열기: BraveSirAndrew/duality 1 사용 예제들

공개 메소드들

메소드 설명
Freeze ( ) : void

Freezes game time. This will cause the GameTimer to stop and TimeMult to equal zero.

Resume ( ) : void

Unfreezes game time. TimeMult resumes to its normal value and GameTimer starts running again.

비공개 메소드들

메소드 설명
FrameTick ( bool forceFixedStep = false ) : void
Resume ( bool hardReset ) : void

메소드 상세

Freeze() 공개 정적인 메소드

Freezes game time. This will cause the GameTimer to stop and TimeMult to equal zero.
public static Freeze ( ) : void
리턴 void

Resume() 공개 정적인 메소드

Unfreezes game time. TimeMult resumes to its normal value and GameTimer starts running again.
public static Resume ( ) : void
리턴 void