C# 클래스 Possession, goalBall

상속: MonoBehaviour
파일 보기 프로젝트 열기: DrexelGoalBall/goalBall 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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

메소드 상세

BlueTeamPossession() 공개 메소드

Gives possesion of the ball to the blue team.
public BlueTeamPossession ( ) : void
리턴 void

GetNextHalfPossession() 공개 메소드

Retrieves who should start with the ball next half
public GetNextHalfPossession ( ) : Team,
리턴 Team,

HasPossessionOfBall() 공개 메소드

Check who has posession of the ball.
public HasPossessionOfBall ( ) : Team,
리턴 Team,

OnCollisionEnter() 공개 메소드

Detects when a red or blue player collides with the ball and sets the possesion variable accordingly.
public OnCollisionEnter ( Collision col ) : void
col Collision
리턴 void

RedTeamPossession() 공개 메소드

Gives possesion of the ball to the red team.
public RedTeamPossession ( ) : void
리턴 void

SetNextHalfPossession() 공개 메소드

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

프로퍼티 상세

bluePlayerTag 공개적으로 프로퍼티

public string bluePlayerTag
리턴 string

redPlayerTag 공개적으로 프로퍼티

public string redPlayerTag
리턴 string