Nostalgia  2.1.5
Collider2DExtensions Class Reference

Extension method of Collider2D More...

Static Public Member Functions

static Cell GetCell (this Collider2D collider)
 Get Cell. More...
 
static Tile GetTile (this Collider2D collider)
 Get Tile. More...
 

Detailed Description

Extension method of Collider2D

Member Function Documentation

static Cell GetCell ( this Collider2D  collider)
static

Get Cell.

Parameters
colliderCollider 2D to acquire Cell
Returns
Cell found. Cell found. If there is none, it returns null.

If Is Combine of Tile Collider setting is true, null is returned because Cell and Collider2D can not be associated.

static Tile GetTile ( this Collider2D  collider)
static

Get Tile.

Parameters
colliderCollider 2D to acquire Tile
Returns
Tile found. If there is none, it returns null.