프로퍼티 | 타입 | 설명 | |
---|---|---|---|
bluePlayerTag | string | ||
redPlayerTag | string |
메소드 | 설명 | |
---|---|---|
BlueTeamPossession ( ) : void |
Gives possesion of the ball to the blue team.
|
|
GetNextHalfPossession ( ) : Team, |
Retrieves who should start with the ball next half
|
|
HasPossessionOfBall ( ) : Team, |
Check who has posession of the ball.
|
|
OnCollisionEnter ( Collision col ) : void |
Detects when a red or blue player collides with the ball and sets the possesion variable accordingly.
|
|
RedTeamPossession ( ) : void |
Gives possesion of the ball to the red team.
|
|
SetNextHalfPossession ( Team, team ) : void |
Set the team who should start with the ball next half
|
public SetNextHalfPossession ( Team, team ) : void | ||
team | Team, | Team that should get the ball |
리턴 | void |