C# Class PlayerRumbleController, goalBall

This script will apply a rumble when you collide with an object with a tag.
Inheritance: MonoBehaviour
Show file Open project: DrexelGoalBall/goalBall

Public Properties

Property Type Description
BallString string
BallTime float
WallString string
WallTime float
rumbleBall float
rumbleBallNear float
rumbleWall float

Public Methods

Method Description
OnCollisionEnter ( Collision col ) : void

Detect when the player enters a trigger with the tag collideString and Activates the Rumble Function.

Start ( ) : void
Update ( ) : void

When the ball is close enought to the player to pick up, vibrate slightly

Method Details

OnCollisionEnter() public method

Detect when the player enters a trigger with the tag collideString and Activates the Rumble Function.
public OnCollisionEnter ( Collision col ) : void
col Collision
return void

Start() public method

public Start ( ) : void
return void

Update() public method

When the ball is close enought to the player to pick up, vibrate slightly
public Update ( ) : void
return void

Property Details

BallString public property

public string BallString
return string

BallTime public property

public float BallTime
return float

WallString public property

public string WallString
return string

WallTime public property

public float WallTime
return float

rumbleBall public property

public float rumbleBall
return float

rumbleBallNear public property

public float rumbleBallNear
return float

rumbleWall public property

public float rumbleWall
return float