C# Class GoalBallPlayerMovementV1, goalBall

This script controls the translation movements of the play.
Inheritance: NetworkBehaviour
显示文件 Open project: DrexelGoalBall/goalBall Class Usage Examples

Public Properties

Property Type Description
currentPosition Vector3
goBack bool
horizontalEnabled bool
slowSpeed float
speed float

Public Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

AutoMove() public method

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

Move() public method

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

Property Details

currentPosition public_oe property

public Vector3 currentPosition
return Vector3

goBack public_oe property

public bool goBack
return bool

horizontalEnabled public_oe property

public bool horizontalEnabled
return bool

slowSpeed public_oe property

public float slowSpeed
return float

speed public_oe property

public float speed
return float