C# Class PolyCollider, Hellbound

Inheritance: MonoBehaviour
显示文件 Open project: Backman/Hellbound Class Usage Examples

Public Properties

Property Type Description
_awakeTime float
_colliderType ColliderType
_deathTime float
_endPosition Vector2
_endTime float
_points List
_startEndPoints Vector2>>.List
_startPosition Vector2
_startTime float
_timer float
_yPosition float
handleOffset Vector2
isDraggingPoint bool
lastIndex int

Public Methods

Method Description
AddPoint ( Vector2 point, int insertPoint ) : int
ClearPoints ( ) : void
CreateInstance ( ) : PolyCollider,
GetEndPosition ( int index ) : Vector2
GetPosition ( int index ) : Vector2
GetStartPosition ( int index ) : Vector2
GetTypeColor ( ) : Color
IsConvex ( ) : bool
OnDisable ( ) : void
OnEnable ( ) : void
OnSceneGUI ( SceneView sceneView ) : void
Refresh ( ) : void
RemovePointAtIndex ( int index ) : void
SetEditable ( bool editable ) : void
SetEndPosition ( int index, Vector2 pos ) : void
SetPoint ( int index, Vector2 point ) : void
SetStartPosition ( int index, Vector2 pos ) : void

Protected Methods

Method Description
Awake ( ) : void
Start ( ) : void

Private Methods

Method Description
SetGizmosColor ( ) : void
generate2DMeshCollider ( ) : void
generate3DMeshCollider ( ) : void

Method Details

AddPoint() public method

public AddPoint ( Vector2 point, int insertPoint ) : int
point Vector2
insertPoint int
return int

Awake() protected method

protected Awake ( ) : void
return void

ClearPoints() public method

public ClearPoints ( ) : void
return void

CreateInstance() public static method

public static CreateInstance ( ) : PolyCollider,
return PolyCollider,

GetEndPosition() public method

public GetEndPosition ( int index ) : Vector2
index int
return Vector2

GetPosition() public method

public GetPosition ( int index ) : Vector2
index int
return Vector2

GetStartPosition() public method

public GetStartPosition ( int index ) : Vector2
index int
return Vector2

GetTypeColor() public method

public GetTypeColor ( ) : Color
return Color

IsConvex() public method

public IsConvex ( ) : bool
return bool

OnDisable() public method

public OnDisable ( ) : void
return void

OnEnable() public method

public OnEnable ( ) : void
return void

OnSceneGUI() public method

public OnSceneGUI ( SceneView sceneView ) : void
sceneView SceneView
return void

Refresh() public method

public Refresh ( ) : void
return void

RemovePointAtIndex() public method

public RemovePointAtIndex ( int index ) : void
index int
return void

SetEditable() public method

public SetEditable ( bool editable ) : void
editable bool
return void

SetEndPosition() public method

public SetEndPosition ( int index, Vector2 pos ) : void
index int
pos Vector2
return void

SetPoint() public method

public SetPoint ( int index, Vector2 point ) : void
index int
point Vector2
return void

SetStartPosition() public method

public SetStartPosition ( int index, Vector2 pos ) : void
index int
pos Vector2
return void

Start() protected method

protected Start ( ) : void
return void

Property Details

_awakeTime public_oe property

public float _awakeTime
return float

_colliderType public_oe property

public ColliderType _colliderType
return ColliderType

_deathTime public_oe property

public float _deathTime
return float

_endPosition public_oe property

public Vector2 _endPosition
return Vector2

_endTime public_oe property

public float _endTime
return float

_points public_oe property

public List _points
return List

_startEndPoints public_oe property

public List> _startEndPoints
return Vector2>>.List

_startPosition public_oe property

public Vector2 _startPosition
return Vector2

_startTime public_oe property

public float _startTime
return float

_timer public_oe property

public float _timer
return float

_yPosition public_oe property

public float _yPosition
return float

handleOffset public_oe property

public Vector2 handleOffset
return Vector2

isDraggingPoint public_oe property

public bool isDraggingPoint
return bool

lastIndex public_oe property

public int lastIndex
return int