C# 클래스 Dive, goalBall

This script is in charge of making the player dive. This accomplishes moving the player down as well as rotating their position.
상속: NetworkBehaviour
파일 보기 프로젝트 열기: DrexelGoalBall/goalBall 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ballSlowdown float
diveSpeed float
player GameObject

공개 메소드들

메소드 설명
DivePressed ( ) : void

Activates a dive action to occur.

OnCollisionEnter ( Collision col ) : void

When the player collieds with the ball, decrease the speed of the ball.

StandUp ( ) : void

Allows outside classes to reset standing parameters (specifically ResetAim)

Start ( ) : void

Initializes all of the variables needed for this script.

Update ( ) : void

Makes diving smother when a dive is detected. Animates the player diving.

메소드 상세

DivePressed() 공개 메소드

Activates a dive action to occur.
public DivePressed ( ) : void
리턴 void

OnCollisionEnter() 공개 메소드

When the player collieds with the ball, decrease the speed of the ball.
public OnCollisionEnter ( Collision col ) : void
col Collision
리턴 void

StandUp() 공개 메소드

Allows outside classes to reset standing parameters (specifically ResetAim)
public StandUp ( ) : void
리턴 void

Start() 공개 메소드

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

Update() 공개 메소드

Makes diving smother when a dive is detected. Animates the player diving.
public Update ( ) : void
리턴 void

프로퍼티 상세

ballSlowdown 공개적으로 프로퍼티

public float ballSlowdown
리턴 float

diveSpeed 공개적으로 프로퍼티

public float diveSpeed
리턴 float

player 공개적으로 프로퍼티

public GameObject player
리턴 GameObject