C# Class Hitable, Unity2d-Game

Inheritance: MonoBehaviour
Show file Open project: sagivo/Unity2d-Game Class Usage Examples

Public Properties

Property Type Description
destroyOnHit GameObject
keepAlive bool

Public Methods

Method Description
OnTriggerEnter2D ( Collider2D other ) : void

Method Details

OnTriggerEnter2D() public method

public OnTriggerEnter2D ( Collider2D other ) : void
other UnityEngine.Collider2D
return void

Property Details

destroyOnHit public property

public GameObject destroyOnHit
return GameObject

keepAlive public property

public bool keepAlive
return bool