FrameIT
Pendulum Class Reference
Inheritance diagram for Pendulum:
Gadget

Public Member Functions

override void OnHit (RaycastHit hit)
 Called when CommunicationEvents.TriggerEvent is invoked, a.k.a. when Player clicks in GameWorld. More...
 

Public Attributes

LayerMask LayerPendulumHits
 
LineRenderer lineRenderer
 
Material linePreviewMaterial
 
- Public Attributes inherited from Gadget
int id = -1
 Position in tool belt. More...
 
string UiName = "Name Not Set"
 Tool Name More...
 
float MaxRange
 Maximum range for this Tool. For consistency use GadgetDistances in GlobalBehaviour. More...
 
Sprite Sprite
 Which sprite to use More...
 
LayerMask ignoreLayerMask
 Layers to ignore for thid gadget by default. More...
 
WorldCursor Cursor
 Which cursor to use More...
 

Private Member Functions

new void Awake ()
 
new void OnEnable ()
 
void OnDisable ()
 
void Update ()
 
void ResetGadget ()
 
void ActivateLineDrawing ()
 
void UpdateLineDrawing ()
 
void DeactivateLineDrawing ()
 

Private Attributes

bool lineDrawingActivated
 
List< Vector3 > linePositions = new List<Vector3>()
 

Additional Inherited Members

- Protected Member Functions inherited from Gadget
void Awake ()
 
void OnEnable ()
 

Member Function Documentation

◆ ActivateLineDrawing()

void Pendulum.ActivateLineDrawing ( )
private

◆ Awake()

new void Pendulum.Awake ( )
private

◆ DeactivateLineDrawing()

void Pendulum.DeactivateLineDrawing ( )
private

◆ OnDisable()

void Pendulum.OnDisable ( )
private

◆ OnEnable()

new void Pendulum.OnEnable ( )
private

◆ OnHit()

override void Pendulum.OnHit ( RaycastHit  hit)
virtual

Called when CommunicationEvents.TriggerEvent is invoked, a.k.a. when Player clicks in GameWorld.

Parameters
hitthe position where it was clicked

Reimplemented from Gadget.

◆ ResetGadget()

void Pendulum.ResetGadget ( )
private

◆ Update()

void Pendulum.Update ( )
private

◆ UpdateLineDrawing()

void Pendulum.UpdateLineDrawing ( )
private

Member Data Documentation

◆ LayerPendulumHits

LayerMask Pendulum.LayerPendulumHits

◆ lineDrawingActivated

bool Pendulum.lineDrawingActivated
private

◆ linePositions

List<Vector3> Pendulum.linePositions = new List<Vector3>()
private

◆ linePreviewMaterial

Material Pendulum.linePreviewMaterial

◆ lineRenderer

LineRenderer Pendulum.lineRenderer

The documentation for this class was generated from the following file: