C# Class BreakTimer, goalBall

Stops the action for a specific amount of time and conveys necessary information for the given type of break
Inheritance: NetworkBehaviour
Afficher le fichier Open project: DrexelGoalBall/goalBall Class Usage Examples

Méthodes publiques

Свойство Type Description
ball GameObject
breakText Text

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

OnBreak() public méthode

Allows outside scripts to check if there is a break occurring
public OnBreak ( ) : bool
Résultat bool

StartBreak() public méthode

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
Résultat void

Property Details

ball public_oe property

public GameObject ball
Résultat GameObject

breakText public_oe property

public Text breakText
Résultat Text