C# 클래스 BallReset, goalBall

This script resets the ball to the proper position. It will put the ball infront of one of the players on the team who is going to get the ball. This could be due to a penalty or a goal.
상속: MonoBehaviour
파일 보기 프로젝트 열기: DrexelGoalBall/goalBall 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Ball GameObject
BlueSideCenter GameObject
BlueSideLeft GameObject
BlueSideRight GameObject
RedSideCenter GameObject
RedSideLeft GameObject
RedSideRight GameObject

공개 메소드들

메소드 설명
Start ( ) : void

Used to initize variables

placeBallBSC ( ) : void

Places the ball at the location of the Blue Side Center ball spawn.

placeBallBSL ( ) : void

Places the ball at the location of the Blue Side Left ball spawn.

placeBallBSR ( ) : void

Places the ball at the location of the Blue Side Right ball spawn.

placeBallRSC ( ) : void

Places the ball at the location of the Red Side Center ball spawn.

placeBallRSL ( ) : void

Places the ball at the location of the Red Side Left ball spawn.

placeBallRSR ( ) : void

Places the ball at the location of the Red Side Right ball spawn.

resetToClosestPoint ( bool redTeamPositions ) : void

Places ball at the location it is closest to

비공개 메소드들

메소드 설명
StopBall ( ) : void

Stops the ball, getting rid of all of the velocity, both directional and rotational. Used to make sure the ball doesn't keep moving after it is moved.

메소드 상세

Start() 공개 메소드

Used to initize variables
public Start ( ) : void
리턴 void

placeBallBSC() 공개 메소드

Places the ball at the location of the Blue Side Center ball spawn.
public placeBallBSC ( ) : void
리턴 void

placeBallBSL() 공개 메소드

Places the ball at the location of the Blue Side Left ball spawn.
public placeBallBSL ( ) : void
리턴 void

placeBallBSR() 공개 메소드

Places the ball at the location of the Blue Side Right ball spawn.
public placeBallBSR ( ) : void
리턴 void

placeBallRSC() 공개 메소드

Places the ball at the location of the Red Side Center ball spawn.
public placeBallRSC ( ) : void
리턴 void

placeBallRSL() 공개 메소드

Places the ball at the location of the Red Side Left ball spawn.
public placeBallRSL ( ) : void
리턴 void

placeBallRSR() 공개 메소드

Places the ball at the location of the Red Side Right ball spawn.
public placeBallRSR ( ) : void
리턴 void

resetToClosestPoint() 공개 메소드

Places ball at the location it is closest to
public resetToClosestPoint ( bool redTeamPositions ) : void
redTeamPositions bool True if checking red positions, False if checking blue positions
리턴 void

프로퍼티 상세

Ball 공개적으로 프로퍼티

public GameObject Ball
리턴 GameObject

BlueSideCenter 공개적으로 프로퍼티

public GameObject BlueSideCenter
리턴 GameObject

BlueSideLeft 공개적으로 프로퍼티

public GameObject BlueSideLeft
리턴 GameObject

BlueSideRight 공개적으로 프로퍼티

public GameObject BlueSideRight
리턴 GameObject

RedSideCenter 공개적으로 프로퍼티

public GameObject RedSideCenter
리턴 GameObject

RedSideLeft 공개적으로 프로퍼티

public GameObject RedSideLeft
리턴 GameObject

RedSideRight 공개적으로 프로퍼티

public GameObject RedSideRight
리턴 GameObject