|
Third Person Cover Shooter
1.6
|
Base implementation for character touch controls. More...
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... | |
Base implementation for character touch controls.
| void CoverShooter.TouchBase.OnPointerDown | ( | PointerEventData | eventData | ) |
|
protectedvirtual |
Reimplemented in CoverShooter.TouchAiming, and CoverShooter.TouchMovement.
| 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.
| GameObject CoverShooter.TouchBase.Center |
Link to the object that is only shown when pressed and represents the center.
| float CoverShooter.TouchBase.CenterDistance = 0.1f |
Distance from the control to it's center circle.
Value is relative to the screen height.
| GameObject CoverShooter.TouchBase.Control |
Link to the object that is always shown.
| MobileController CoverShooter.TouchBase.Controller |
Mobile controller that will be given the input.
| float CoverShooter.TouchBase.ScreenAreaSize = 0.5f |
Relative size of the screen area at the same side as the touch control.
| GameObject CoverShooter.TouchBase.Selection |
Link to the object that is only shown when pressed.
|
get |
Current value of the controls.
|
get |
Is the current input cancelled.
|
get |
Current magnitude of input.