C# Class DestroyOnCollision, Viewport

Inheritance: MonoBehaviour
Datei anzeigen Open project: tws2xa/Viewport Class Usage Examples

Public Properties

Property Type Description
destroyTags List

Public Methods

Method Description
OnCollisionEnter ( Collision collision ) : void

Method Details

OnCollisionEnter() public method

public OnCollisionEnter ( Collision collision ) : void
collision Collision
return void

Property Details

destroyTags public_oe property

This list contains all destroy trigger tags. If the object collides with anything that has one of these tags, it will be destroyed. Otherwise, it will not be destroyed.
public List destroyTags
return List