Nostalgia  2.1.5
TileCollider< T > Class Template Reference

Convenient class to specify the type of Collider2D by generic More...

Inheritance diagram for TileCollider< T >:
TileColliderBase

Protected Member Functions

override System.Type GetRequireColliderType ()
 Get the type of request to Collider2D. More...
 
- Protected Member Functions inherited from TileColliderBase
virtual bool UpdateColliderProperty (Collider2D collider)
 Method to update the property of Collider2D. More...
 

Additional Inherited Members

- Public Member Functions inherited from TileColliderBase
virtual void GetPolygons (Vector2 cellPos, List< List< Vector2 >> polygons)
 Get polygons. More...
 
virtual bool IsUpdateCollider (Collider2D collider, Vector2 cellPos)
 Determines whether the need to update the collider In the inherited class, to determine the change of property to each other as needed. More...
 
Collider2D UpdateCollider (Collider2D collider, GameObject colliderObject, Vector2 pos, bool isCellObject, out bool changed)
 To update the Collider More...
 
- Public Attributes inherited from TileColliderBase
Vector2 offset = Vector2.zero
 Offset in the case where the center of the tile is set to 0 More...
 
PhysicsMaterial2D physicsMaterial
 PhysicsMaterial2D be set to Collider. More...
 
bool isTrigger = false
 Is Trigger be set to Collider. More...
 
bool isCombine = false
 Whether to combine Collider More...
 
bool isSplitMapCollider = true
 Whether to split MapCollider More...
 
- Properties inherited from TileColliderBase
Tile tile [get]
 It is associated with tile More...
 

Detailed Description

Convenient class to specify the type of Collider2D by generic

Template Parameters
TType of Collider2D
Type Constraints
T :Collider2D 

Member Function Documentation

override System.Type GetRequireColliderType ( )
protectedvirtual

Get the type of request to Collider2D.

Returns
Type of Collider2D

Implements TileColliderBase.