C# Class UIStatus, urban-survivors

This script is used to create a status bar style widget that fades in, shows the message, waits a bit then fades out. Basic usage: UIStatus.Show(text)
Inheritance: MonoBehaviour
Show file Open project: exdev/urban-survivors Class Usage Examples

Public Properties

Property Type Description
ShowHideControls GameObject[]
activeReloadBar PackedSprite,
activeReloadFloat PackedSprite,
activeReloadZone PackedSprite,
aimingNeedle PackedSprite,
aimingOutline PackedSprite,
boyFace PackedSprite,
boyProgressBar UIProgressBar,
bulletCounterText SpriteText,
girlFace PackedSprite,
girlProgressBar UIProgressBar,
hint_lowAmmo GameObject
hint_reloadBin GameObject
hint_tapAgain GameObject
meleeButton PackedSprite,
moveAnalog PackedSprite,
moveOutline PackedSprite,
reloadButton PackedSprite,
reloadindEffect PackedSprite,
snd_onar_failed UnityEngine.AudioClip
snd_onar_success UnityEngine.AudioClip
totalBulletCounterText SpriteText,

Protected Properties

Property Type Description
ReloadButtonState StateUpdate
blinkText bool
initBoyTrans Transform
initGirlTrans Transform
screenPad ScreenPad,
showControls bool
showHideInitPos Vector3[]

Public Methods

Method Description
ActiveAimingZone ( bool _active ) : void
ActiveMeleeButton ( bool _active ) : void
ActiveMovingZone ( bool _active ) : void
ActiveReloadBarColorUpdate ( float _value ) : void
Awake ( ) : void
DisableReloadButton ( ) : void
EnableReloadButton ( ) : void
HideActiveReloadBar ( string _state ) : IEnumerator
OnActiveReload ( ) : void
OnReload ( ) : void
ShowActiveReloadBar ( ) : void
ShowControls ( bool _show, float _sec ) : IEnumerator
Start ( ) : void
StopActiveReload ( ) : void
Update ( ) : void
UpdateAcceptActiveReload ( ) : void
UpdateAcceptReload ( ) : void
UpdateReloadDeactive ( ) : void

Private Methods

Method Description
GoActiveReloadForSeconds ( float _seconds ) : IEnumerator
OnBoyHit ( ) : IEnumerator
OnGirlHit ( ) : IEnumerator

Method Details

ActiveAimingZone() public method

public ActiveAimingZone ( bool _active ) : void
_active bool
return void

ActiveMeleeButton() public method

public ActiveMeleeButton ( bool _active ) : void
_active bool
return void

ActiveMovingZone() public method

public ActiveMovingZone ( bool _active ) : void
_active bool
return void

ActiveReloadBarColorUpdate() public method

public ActiveReloadBarColorUpdate ( float _value ) : void
_value float
return void

Awake() public method

public Awake ( ) : void
return void

DisableReloadButton() public method

public DisableReloadButton ( ) : void
return void

EnableReloadButton() public method

public EnableReloadButton ( ) : void
return void

HideActiveReloadBar() public method

public HideActiveReloadBar ( string _state ) : IEnumerator
_state string
return IEnumerator

OnActiveReload() public method

public OnActiveReload ( ) : void
return void

OnReload() public method

public OnReload ( ) : void
return void

ShowActiveReloadBar() public method

public ShowActiveReloadBar ( ) : void
return void

ShowControls() public method

public ShowControls ( bool _show, float _sec ) : IEnumerator
_show bool
_sec float
return IEnumerator

Start() public method

public Start ( ) : void
return void

StopActiveReload() public method

public StopActiveReload ( ) : void
return void

Update() public method

public Update ( ) : void
return void

UpdateAcceptActiveReload() public method

public UpdateAcceptActiveReload ( ) : void
return void

UpdateAcceptReload() public method

public UpdateAcceptReload ( ) : void
return void

UpdateReloadDeactive() public method

public UpdateReloadDeactive ( ) : void
return void

Property Details

ReloadButtonState protected property

protected StateUpdate ReloadButtonState
return StateUpdate

ShowHideControls public property

public GameObject[] ShowHideControls
return GameObject[]

activeReloadBar public property

public PackedSprite, activeReloadBar
return PackedSprite,

activeReloadFloat public property

public PackedSprite, activeReloadFloat
return PackedSprite,

activeReloadZone public property

public PackedSprite, activeReloadZone
return PackedSprite,

aimingNeedle public property

public PackedSprite, aimingNeedle
return PackedSprite,

aimingOutline public property

public PackedSprite, aimingOutline
return PackedSprite,

blinkText protected property

protected bool blinkText
return bool

boyFace public property

public PackedSprite, boyFace
return PackedSprite,

boyProgressBar public property

public UIProgressBar, boyProgressBar
return UIProgressBar,

bulletCounterText public property

public SpriteText, bulletCounterText
return SpriteText,

girlFace public property

public PackedSprite, girlFace
return PackedSprite,

girlProgressBar public property

public UIProgressBar, girlProgressBar
return UIProgressBar,

hint_lowAmmo public property

public GameObject hint_lowAmmo
return GameObject

hint_reloadBin public property

public GameObject hint_reloadBin
return GameObject

hint_tapAgain public property

public GameObject hint_tapAgain
return GameObject

initBoyTrans protected property

protected Transform initBoyTrans
return Transform

initGirlTrans protected property

protected Transform initGirlTrans
return Transform

meleeButton public property

public PackedSprite, meleeButton
return PackedSprite,

moveAnalog public property

public PackedSprite, moveAnalog
return PackedSprite,

moveOutline public property

public PackedSprite, moveOutline
return PackedSprite,

reloadButton public property

public PackedSprite, reloadButton
return PackedSprite,

reloadindEffect public property

public PackedSprite, reloadindEffect
return PackedSprite,

screenPad protected property

protected ScreenPad, screenPad
return ScreenPad,

showControls protected property

protected bool showControls
return bool

showHideInitPos protected property

protected Vector3[] showHideInitPos
return Vector3[]

snd_onar_failed public property

public AudioClip,UnityEngine snd_onar_failed
return UnityEngine.AudioClip

snd_onar_success public property

public AudioClip,UnityEngine snd_onar_success
return UnityEngine.AudioClip

totalBulletCounterText public property

public SpriteText, totalBulletCounterText
return SpriteText,