Third Person Cover Shooter  1.6
CoverShooter.EquipBar Class Reference

When pressed makes a character pick that weapon. More...

Inheritance diagram for CoverShooter.EquipBar:
CoverShooter.PressButton

Public Attributes

GameObject Target
 Gun oject that is selected. More...
 
CharacterMotor Motor
 Motor which will be assigned the weapon 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 ammo bar. More...
 
RectTransform [] Icons
 Link to the icon objects. 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 the gun is selected. More...
 
Color InactiveColor = new Color(1, 1, 1, 0.6f)
 Color to use on elements when the gun is 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

When pressed makes a character pick that weapon.

Member Function Documentation

◆ OnPress()

override void CoverShooter.EquipBar.OnPress ( )
protectedvirtual

Reimplemented from CoverShooter.PressButton.

Member Data Documentation

◆ ActiveColor

Color CoverShooter.EquipBar.ActiveColor = Color.white

Color to use on elements when the gun is selected.

◆ BackgroundRect

RectTransform CoverShooter.EquipBar.BackgroundRect

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

◆ HideWhenNone

bool CoverShooter.EquipBar.HideWhenNone = false

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

◆ Icons

RectTransform [] CoverShooter.EquipBar.Icons

Link to the icon objects.

◆ InactiveColor

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

Color to use on elements when the gun is not selected.

◆ Motor

CharacterMotor CoverShooter.EquipBar.Motor

Motor which will be assigned the weapon when pressed.

◆ Name

Text CoverShooter.EquipBar.Name

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

◆ Target

GameObject CoverShooter.EquipBar.Target

Gun oject that is selected.


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