FindCell

FindCell(Vector3)

public static Map.CellResult FindCell(Vector3 worldPos) ;

Description

Finds the Cell from the world position.

Parameters

Parameter Name Description
worldPos World position.

Returns

CellResult is returned if you find. Null is returned if it does not exist.

FindCell(Collider2D)

public static Cell FindCell(Collider2D collider) ;

Description

Find Cell from Collider 2D.

Parameters

Parameter Name Description
collider Collider2D to acquire Cell

Returns

Return Cell. It returns null if it can not be found.