C# Class CasterCollider, DefendAman

Show file Open project: CarsonRoscoe/DefendAman

Public Properties

Property Type Description
TotalPointsCount int
collider UnityEngine.Collider2D
points Vector2[]
transform Transform
type CasterType

Public Methods

Method Description
getTotalPointsCount ( ) : int
recalcBox ( ) : void
recalcTan ( Vector2 source ) : void

Private Methods

Method Description
CasterCollider ( BoxCollider2D coll ) : UnityEngine
CasterCollider ( CircleCollider2D coll, Vector2 lightSource ) : UnityEngine
CasterCollider ( EdgeCollider2D coll ) : UnityEngine
CasterCollider ( PolygonCollider2D coll ) : UnityEngine
getCirclePoints ( Vector2 lightSource ) : Vector2[]
getSquarePoints ( ) : Vector2[]

Method Details

getTotalPointsCount() public method

public getTotalPointsCount ( ) : int
return int

recalcBox() public method

public recalcBox ( ) : void
return void

recalcTan() public method

public recalcTan ( Vector2 source ) : void
source Vector2
return void

Property Details

TotalPointsCount public property

public int TotalPointsCount
return int

collider public property

public Collider2D,UnityEngine collider
return UnityEngine.Collider2D

points public property

public Vector2[] points
return Vector2[]

transform public property

public Transform transform
return Transform

type public property

public CasterType type
return CasterType