Third Person Cover Shooter  1.6
CoverShooter.GrenadeBar Class Reference

On touch makes the character pick up a grenade. More...

Inheritance diagram for CoverShooter.GrenadeBar:
CoverShooter.PressButton

Public Attributes

CharacterMotor Motor
 Motor which will be told to use grenades when pressed. More...
 
bool HideWhenNone = false
 Determines if the bar is hidden when there is no target. More...
 
RectTransform BackgroundRect
 Link to the object that draws the background of the bar. More...
 
RectTransform Icon
 Link to the icon object. More...
 
Text Name
 Link to the object that will be used to display a gun's name. More...
 
Color ActiveColor = Color.white
 Color to use on elements when grenades are selected. More...
 
Color InactiveColor = new Color(1, 1, 1, 0.6f)
 Color to use on elements when grenades are not selected. More...
 
- Public Attributes inherited from CoverShooter.PressButton
PressButtonSettings Button = PressButtonSettings.Default()
 

Protected Member Functions

override void OnPress ()
 
- Protected Member Functions inherited from CoverShooter.PressButton
virtual void OnRelease ()
 
virtual void OnEnter ()
 
virtual void OnExit ()
 

Additional Inherited Members

- Public Member Functions inherited from CoverShooter.PressButton
void OnPointerDown (PointerEventData eventData)
 
void OnPointerUp (PointerEventData eventData)
 
void OnPointerEnter (PointerEventData eventData)
 
void OnPointerExit (PointerEventData eventData)
 

Detailed Description

On touch makes the character pick up a grenade.

Member Function Documentation

◆ OnPress()

override void CoverShooter.GrenadeBar.OnPress ( )
protectedvirtual

Reimplemented from CoverShooter.PressButton.

Member Data Documentation

◆ ActiveColor

Color CoverShooter.GrenadeBar.ActiveColor = Color.white

Color to use on elements when grenades are selected.

◆ BackgroundRect

RectTransform CoverShooter.GrenadeBar.BackgroundRect

Link to the object that draws the background of the bar.

◆ HideWhenNone

bool CoverShooter.GrenadeBar.HideWhenNone = false

Determines if the bar is hidden when there is no target.

◆ Icon

RectTransform CoverShooter.GrenadeBar.Icon

Link to the icon object.

◆ InactiveColor

Color CoverShooter.GrenadeBar.InactiveColor = new Color(1, 1, 1, 0.6f)

Color to use on elements when grenades are not selected.

◆ Motor

CharacterMotor CoverShooter.GrenadeBar.Motor

Motor which will be told to use grenades when pressed.

◆ Name

Text CoverShooter.GrenadeBar.Name

Link to the object that will be used to display a gun's name.


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