C# 클래스 BreakTimer, goalBall

Stops the action for a specific amount of time and conveys necessary information for the given type of break
상속: NetworkBehaviour
파일 보기 프로젝트 열기: DrexelGoalBall/goalBall 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ball GameObject
breakText Text

공개 메소드들

메소드 설명
OnBreak ( ) : bool

Allows outside scripts to check if there is a break occurring

StartBreak ( GameBreak, type ) : void

On the server, initiate the given type of break

비공개 메소드들

메소드 설명
BreakChange ( bool breakStarted ) : void

On the clients, change the break flag and the ball constraints accordingly

EndBreak ( ) : void

On the server, end the current break

Start ( ) : void

Retrieve the necessary object and script references

Update ( ) : void

Checks if the break has ended or displays the amount of time left on the current break

메소드 상세

OnBreak() 공개 메소드

Allows outside scripts to check if there is a break occurring
public OnBreak ( ) : bool
리턴 bool

StartBreak() 공개 메소드

On the server, initiate the given type of break
public StartBreak ( GameBreak, type ) : void
type GameBreak, The type of break that is necessary to start
리턴 void

프로퍼티 상세

ball 공개적으로 프로퍼티

public GameObject ball
리턴 GameObject

breakText 공개적으로 프로퍼티

public Text breakText
리턴 Text