Property | Type | Description | |
---|---|---|---|
CantPassThrough | LayerMask | ||
GrowthRate | float |
Method | Description | |
---|---|---|
OnTriggerEnter ( Collider col ) : void |
When an object enters a collider, check to see if it hits a layer in the layer mask
|
|
OnTriggerExit ( Collider col ) : void |
When the object exits the collider
|
|
Start ( ) : void |
Used to initialize GrowthRate to the appropriate value
|
|
Update ( ) : void |
Called every frame. Moves the cylinder to create the growing effect.
|
public OnTriggerEnter ( Collider col ) : void | ||
col | Collider | The object collided with |
return | void |
public OnTriggerExit ( Collider col ) : void | ||
col | Collider | The object it collided with |
return | void |