FrameIT
Tape Class Reference
Inheritance diagram for Tape:
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

float maxHeight = 2.5f
 
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 TapeModeIsFirstPointSelected = false
 
Fact TapeModeFirstPointSelected = null
 
List< Vector3 > linePositions = new List<Vector3>()
 

Additional Inherited Members

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

Member Function Documentation

◆ ActivateLineDrawing()

void Tape.ActivateLineDrawing ( )
private

◆ Awake()

new void Tape.Awake ( )
private

◆ DeactivateLineDrawing()

void Tape.DeactivateLineDrawing ( )
private

◆ OnDisable()

void Tape.OnDisable ( )
private

◆ OnEnable()

new void Tape.OnEnable ( )
private

◆ OnHit()

override void Tape.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 Tape.ResetGadget ( )
private

◆ Update()

void Tape.Update ( )
private

◆ UpdateLineDrawing()

void Tape.UpdateLineDrawing ( )
private

Member Data Documentation

◆ linePositions

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

◆ linePreviewMaterial

Material Tape.linePreviewMaterial

◆ lineRenderer

LineRenderer Tape.lineRenderer

◆ maxHeight

float Tape.maxHeight = 2.5f

◆ TapeModeFirstPointSelected

Fact Tape.TapeModeFirstPointSelected = null
private

◆ TapeModeIsFirstPointSelected

bool Tape.TapeModeIsFirstPointSelected = false
private

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