C# 클래스 TimeTrackerController

상속: MonoBehaviour
파일 보기 프로젝트 열기: FIU-SCIS-Senior-Projects/SmartBuilding4 1 사용 예제들

공개 메소드들

메소드 설명
convertSecondsToTimeOfDayString ( int sec ) : string
getSimStartTime ( ) : int
getSimTime ( TimeFormat desiredFormat ) : string

Gets the sim time.

getTimeOfDayInSeconds ( ) : int
oneSecondPassed ( float time ) : void
pause ( ) : void

Pause this instance.

printSimTime ( TimeFormat desiredFormat ) : void

Prints the sim time.

resume ( ) : void

Resume this instance.

setSimulationStartTime ( string timeOfDay ) : void

Sets the sim start time. FORMAT = 00:00:00 AM

비공개 메소드들

메소드 설명
Awake ( ) : void
Start ( ) : void
Update ( ) : void
convertSecToDayHoMinSec ( int sec ) : string

Converts the seconds to days hours minites seconds.

convertSecToHoMinSec ( int sec ) : string

Converts the seconds to hours minutes seconds.

convertSecToMinSec ( int sec ) : string

Converts the sec to minutes seconds.

convertSecToTimeOfDay ( int sec ) : string

Converts the seconds to time of day.

메소드 상세

convertSecondsToTimeOfDayString() 공개 정적인 메소드

public static convertSecondsToTimeOfDayString ( int sec ) : string
sec int
리턴 string

getSimStartTime() 공개 메소드

public getSimStartTime ( ) : int
리턴 int

getSimTime() 공개 메소드

Gets the sim time.
public getSimTime ( TimeFormat desiredFormat ) : string
desiredFormat TimeFormat Desired format. --- consult TimeFormat Enum
리턴 string

getTimeOfDayInSeconds() 공개 메소드

public getTimeOfDayInSeconds ( ) : int
리턴 int

oneSecondPassed() 공개 메소드

public oneSecondPassed ( float time ) : void
time float
리턴 void

pause() 공개 메소드

Pause this instance.
public pause ( ) : void
리턴 void

printSimTime() 공개 메소드

Prints the sim time.
public printSimTime ( TimeFormat desiredFormat ) : void
desiredFormat TimeFormat Desired format. --- consult TimeFormat Enum
리턴 void

resume() 공개 메소드

Resume this instance.
public resume ( ) : void
리턴 void

setSimulationStartTime() 공개 메소드

Sets the sim start time. FORMAT = 00:00:00 AM
public setSimulationStartTime ( string timeOfDay ) : void
timeOfDay string Time of day as string. //format should be .. 00:00:00 am
리턴 void