2D Platform Controller  v1.7.0
Autogenerated code documentation for the 2D Platform Controller.
 All Classes Functions Variables Properties
HitBox Class Reference

A hit box takes damage and passes it to a health component for processing. This allows you to easily move the damage points or alternatively attach them to transforms. More...

Inherits MonoBehaviour.

Public Member Functions

virtual void Damage (int amount)
 
virtual void Collect (Collectable collectable)
 

Public Attributes

SimpleHealth simplehealth
 

Detailed Description

A hit box takes damage and passes it to a health component for processing. This allows you to easily move the damage points or alternatively attach them to transforms.

A hit box can also be used to collect items. Although at the moment the collect method doesn't do anything. You could sue this to grant powers, increment counters, etc.


The documentation for this class was generated from the following file: