C# 클래스 GoalBallPlayerMovementV1, goalBall

This script controls the translation movements of the play.
상속: NetworkBehaviour
파일 보기 프로젝트 열기: DrexelGoalBall/goalBall 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
currentPosition Vector3
goBack bool
horizontalEnabled bool
slowSpeed float
speed float

공개 메소드들

메소드 설명
AutoMove ( ) : void

Set goback to true which should move the player back to his origonal position

Move ( float Horizontal, float Vertical ) : void

Increases the velocity of the player by the provided values.

비공개 메소드들

메소드 설명
Start ( ) : void

initializes variables that need to be used by this script.

Update ( ) : void

if goback is true, then it will move it back to its origonal position.

메소드 상세

AutoMove() 공개 메소드

Set goback to true which should move the player back to his origonal position
public AutoMove ( ) : void
리턴 void

Move() 공개 메소드

Increases the velocity of the player by the provided values.
public Move ( float Horizontal, float Vertical ) : void
Horizontal float
Vertical float
리턴 void

프로퍼티 상세

currentPosition 공개적으로 프로퍼티

public Vector3 currentPosition
리턴 Vector3

goBack 공개적으로 프로퍼티

public bool goBack
리턴 bool

horizontalEnabled 공개적으로 프로퍼티

public bool horizontalEnabled
리턴 bool

slowSpeed 공개적으로 프로퍼티

public float slowSpeed
리턴 float

speed 공개적으로 프로퍼티

public float speed
리턴 float