C# 클래스 Fouls, goalBall

Foul System This system keeps track of all of the fouls that can happen in a game and give the ball to the player that should get it. Current fouls are: Time foul (have possession of the ball for over 10 seconds) Out of bounts (throw the ball out of bounds) Dead Ball Ball stays in neutral area for longer than 3 seconds.
상속: NetworkBehaviour
파일 보기 프로젝트 열기: DrexelGoalBall/goalBall 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
BR BallReset,
BT BreakTimer,
BlueNeutralArea string
BlueTeamArea string
DeadBallTime int
GT GameTimer,
RedNeutralArea string
RedTeamArea string
TimerFoulTime int
ball GameObject
ballLocation ListObjectLocation,
ballPossession Possession,

공개 메소드들

메소드 설명
LineOut ( ) : void

Calls the LineOut foul and all associated actions.

Start ( ) : void

Initializes all of the objects and variables needed for this script.

ThrowDeadBallFoul ( ) : void

Throw DeadBall Foul and all associated actions.

ThrowTimeFoul ( bool inRedZone ) : void

Throw the time Foul and all associated actions.

Update ( ) : void

Main function that checks whether a foul has been made in real time. Keeps a timer running for checking fouls.

비공개 메소드들

메소드 설명
foul ( bool committedByRed, bool resetToClosest ) : void

Activates the move of the foul and makes the Referee call play at the end.ss

메소드 상세

LineOut() 공개 메소드

Calls the LineOut foul and all associated actions.
public LineOut ( ) : void
리턴 void

Start() 공개 메소드

Initializes all of the objects and variables needed for this script.
public Start ( ) : void
리턴 void

ThrowDeadBallFoul() 공개 메소드

Throw DeadBall Foul and all associated actions.
public ThrowDeadBallFoul ( ) : void
리턴 void

ThrowTimeFoul() 공개 메소드

Throw the time Foul and all associated actions.
public ThrowTimeFoul ( bool inRedZone ) : void
inRedZone bool Whether the foul took place in the red zone or not
리턴 void

Update() 공개 메소드

Main function that checks whether a foul has been made in real time. Keeps a timer running for checking fouls.
public Update ( ) : void
리턴 void

프로퍼티 상세

BR 공개적으로 프로퍼티

public BallReset, BR
리턴 BallReset,

BT 공개적으로 프로퍼티

public BreakTimer, BT
리턴 BreakTimer,

BlueNeutralArea 공개적으로 프로퍼티

public string BlueNeutralArea
리턴 string

BlueTeamArea 공개적으로 프로퍼티

public string BlueTeamArea
리턴 string

DeadBallTime 공개적으로 프로퍼티

public int DeadBallTime
리턴 int

GT 공개적으로 프로퍼티

public GameTimer, GT
리턴 GameTimer,

RedNeutralArea 공개적으로 프로퍼티

public string RedNeutralArea
리턴 string

RedTeamArea 공개적으로 프로퍼티

public string RedTeamArea
리턴 string

TimerFoulTime 공개적으로 프로퍼티

public int TimerFoulTime
리턴 int

ball 공개적으로 프로퍼티

public GameObject ball
리턴 GameObject

ballLocation 공개적으로 프로퍼티

public ListObjectLocation, ballLocation
리턴 ListObjectLocation,

ballPossession 공개적으로 프로퍼티

public Possession, ballPossession
리턴 Possession,