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
ファイルを表示 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_oe property

protected StateUpdate ReloadButtonState
return StateUpdate

ShowHideControls public_oe property

public GameObject[] ShowHideControls
return GameObject[]

activeReloadBar public_oe property

public PackedSprite, activeReloadBar
return PackedSprite,

activeReloadFloat public_oe property

public PackedSprite, activeReloadFloat
return PackedSprite,

activeReloadZone public_oe property

public PackedSprite, activeReloadZone
return PackedSprite,

aimingNeedle public_oe property

public PackedSprite, aimingNeedle
return PackedSprite,

aimingOutline public_oe property

public PackedSprite, aimingOutline
return PackedSprite,

blinkText protected_oe property

protected bool blinkText
return bool

boyFace public_oe property

public PackedSprite, boyFace
return PackedSprite,

boyProgressBar public_oe property

public UIProgressBar, boyProgressBar
return UIProgressBar,

bulletCounterText public_oe property

public SpriteText, bulletCounterText
return SpriteText,

girlFace public_oe property

public PackedSprite, girlFace
return PackedSprite,

girlProgressBar public_oe property

public UIProgressBar, girlProgressBar
return UIProgressBar,

hint_lowAmmo public_oe property

public GameObject hint_lowAmmo
return GameObject

hint_reloadBin public_oe property

public GameObject hint_reloadBin
return GameObject

hint_tapAgain public_oe property

public GameObject hint_tapAgain
return GameObject

initBoyTrans protected_oe property

protected Transform initBoyTrans
return Transform

initGirlTrans protected_oe property

protected Transform initGirlTrans
return Transform

meleeButton public_oe property

public PackedSprite, meleeButton
return PackedSprite,

moveAnalog public_oe property

public PackedSprite, moveAnalog
return PackedSprite,

moveOutline public_oe property

public PackedSprite, moveOutline
return PackedSprite,

reloadButton public_oe property

public PackedSprite, reloadButton
return PackedSprite,

reloadindEffect public_oe property

public PackedSprite, reloadindEffect
return PackedSprite,

screenPad protected_oe property

protected ScreenPad, screenPad
return ScreenPad,

showControls protected_oe property

protected bool showControls
return bool

showHideInitPos protected_oe property

protected Vector3[] showHideInitPos
return Vector3[]

snd_onar_failed public_oe property

public AudioClip,UnityEngine snd_onar_failed
return UnityEngine.AudioClip

snd_onar_success public_oe property

public AudioClip,UnityEngine snd_onar_success
return UnityEngine.AudioClip

totalBulletCounterText public_oe property

public SpriteText, totalBulletCounterText
return SpriteText,