C# Class PolygonEditor, Hellbound

Inheritance: Editor
Mostrar archivo Open project: Backman/Hellbound

Public Properties

Property Type Description
activePoint int
awakeTime float
colliderType PolyCollider.ColliderType
deathTime float
endPosition Vector2
endTime float
insertPoint int
pointSelected bool
snapEnabled bool
snapValue float
startPosition Vector2
startTime float
timeSlider float

Public Methods

Method Description
CreatePolyColliderObject ( ) : void
DrawInsertPointGUI ( Vector3 points ) : bool
OnInspectorGUI ( ) : void
OnSceneGUI ( ) : void
SetSnapEnabled ( bool enable ) : void
SetSnapValue ( float snapVal ) : void
setEndTime ( float time ) : void
setPositionBasedOnTimer ( float time ) : void
setStartTime ( float time ) : void

Private Methods

Method Description
DrawHandles ( Vector3 p ) : void
DrawLines ( Vector3 p ) : void
GUIEditSettings ( ) : bool
GUIPointSettings ( ) : bool
GUIPositionSettings ( ) : bool
GameObjectInit ( ) : void
GetWorldPoint ( Camera cam, Vector2 pos ) : Vector2
OnDisable ( ) : void
OnEnable ( ) : void
PointDrawStyleInput ( Camera cam, Event e, Vector3 p ) : void
Round ( Vector2 val, float snap ) : Vector2
Round ( Vector3 val, float snap ) : Vector3
Round ( float val, float snap ) : float
ShortcutListener ( Event e ) : void
ToggleEditingEnabled ( ) : void
UndoRedoPerformed ( ) : void
setEndPositions ( ) : void
setStartPositions ( ) : void

Method Details

CreatePolyColliderObject() public static method

public static CreatePolyColliderObject ( ) : void
return void

DrawInsertPointGUI() public method

public DrawInsertPointGUI ( Vector3 points ) : bool
points Vector3
return bool

OnInspectorGUI() public method

public OnInspectorGUI ( ) : void
return void

OnSceneGUI() public method

public OnSceneGUI ( ) : void
return void

SetSnapEnabled() public method

public SetSnapEnabled ( bool enable ) : void
enable bool
return void

SetSnapValue() public method

public SetSnapValue ( float snapVal ) : void
snapVal float
return void

setEndTime() public method

public setEndTime ( float time ) : void
time float
return void

setPositionBasedOnTimer() public method

public setPositionBasedOnTimer ( float time ) : void
time float
return void

setStartTime() public method

public setStartTime ( float time ) : void
time float
return void

Property Details

activePoint public_oe property

public int activePoint
return int

awakeTime public_oe property

public float awakeTime
return float

colliderType public_oe property

public PolyCollider.ColliderType colliderType
return PolyCollider.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

insertPoint public_oe property

public int insertPoint
return int

pointSelected public_oe property

public bool pointSelected
return bool

snapEnabled public_oe property

public bool snapEnabled
return bool

snapValue public_oe property

public float snapValue
return float

startPosition public_oe property

public Vector2 startPosition
return Vector2

startTime public_oe property

public float startTime
return float

timeSlider public_oe property

public float timeSlider
return float