C# Class ListObjectLocation, goalBall

This script will list the last collider that an object collided with. This is used to tell the location of an object as it enters a new trigger area.
Inheritance: MonoBehaviour
Exibir arquivo Open project: DrexelGoalBall/goalBall Class Usage Examples

Public Properties

Property Type Description
currentArea string
isMoving bool

Public Methods

Method Description
Awake ( ) : void
OnTriggerEnter ( Collider col ) : void

Detects when the object enters a trigger and updates the currentArea if the object is not tagged with Floor.

Start ( ) : void
Update ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

OnTriggerEnter() public method

Detects when the object enters a trigger and updates the currentArea if the object is not tagged with Floor.
public OnTriggerEnter ( Collider col ) : void
col Collider
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

currentArea public_oe property

public string currentArea
return string

isMoving public_oe property

public bool isMoving
return bool