Third Person Cover Shooter  1.6
CoverShooter.TouchBase Class Reference

Base implementation for character touch controls. More...

Inheritance diagram for CoverShooter.TouchBase:
CoverShooter.TouchAiming CoverShooter.TouchMovement

Public Member Functions

void OnPointerDown (PointerEventData eventData)
 

Public Attributes

MobileController Controller
 Mobile controller that will be given the input. More...
 
GameObject Control
 Link to the object that is always shown. More...
 
GameObject Selection
 Link to the object that is only shown when pressed. More...
 
GameObject Center
 Link to the object that is only shown when pressed and represents the center. More...
 
float ScreenAreaSize = 0.5f
 Relative size of the screen area at the same side as the touch control. More...
 
float CenterDistance = 0.1f
 Distance from the control to it's center circle. More...
 
float CancelDistance = 0.05f
 Cancel input when the distance from the control to the center is lesser than the value. More...
 

Protected Member Functions

virtual void Update ()
 

Properties

Vector2 Delta [get]
 Current value of the controls. More...
 
float Magnitude [get]
 Current magnitude of input. More...
 
bool IsCancelled [get]
 Is the current input cancelled. More...
 

Detailed Description

Base implementation for character touch controls.

Member Function Documentation

◆ OnPointerDown()

void CoverShooter.TouchBase.OnPointerDown ( PointerEventData  eventData)

◆ Update()

virtual void CoverShooter.TouchBase.Update ( )
protectedvirtual

Member Data Documentation

◆ CancelDistance

float CoverShooter.TouchBase.CancelDistance = 0.05f

Cancel input when the distance from the control to the center is lesser than the value.

Value is relative to the screen height.

◆ Center

GameObject CoverShooter.TouchBase.Center

Link to the object that is only shown when pressed and represents the center.

◆ CenterDistance

float CoverShooter.TouchBase.CenterDistance = 0.1f

Distance from the control to it's center circle.

Value is relative to the screen height.

◆ Control

GameObject CoverShooter.TouchBase.Control

Link to the object that is always shown.

◆ Controller

MobileController CoverShooter.TouchBase.Controller

Mobile controller that will be given the input.

◆ ScreenAreaSize

float CoverShooter.TouchBase.ScreenAreaSize = 0.5f

Relative size of the screen area at the same side as the touch control.

◆ Selection

GameObject CoverShooter.TouchBase.Selection

Link to the object that is only shown when pressed.

Property Documentation

◆ Delta

Vector2 CoverShooter.TouchBase.Delta
get

Current value of the controls.

◆ IsCancelled

bool CoverShooter.TouchBase.IsCancelled
get

Is the current input cancelled.

◆ Magnitude

float CoverShooter.TouchBase.Magnitude
get

Current magnitude of input.


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