A class to add to an Image or SpriteRenderer to have it act like a button with a different sprite for on and off states
More...
A class to add to an Image or SpriteRenderer to have it act like a button with a different sprite for on and off states
◆ Initialization()
virtual void MoreMountains.MMInterface.MMSpriteReplace.Initialization |
( |
| ) |
|
|
protectedvirtual |
◆ SpriteOff()
virtual void MoreMountains.MMInterface.MMSpriteReplace.SpriteOff |
( |
| ) |
|
|
protectedvirtual |
sets the image's sprite to off
◆ SpriteOn()
virtual void MoreMountains.MMInterface.MMSpriteReplace.SpriteOn |
( |
| ) |
|
|
protectedvirtual |
◆ Start()
virtual void MoreMountains.MMInterface.MMSpriteReplace.Start |
( |
| ) |
|
|
protectedvirtual |
On Start we initialize our button
◆ Swap()
virtual void MoreMountains.MMInterface.MMSpriteReplace.Swap |
( |
| ) |
|
|
virtual |
A public method to change the sprite
◆ SwitchToOffSprite()
virtual void MoreMountains.MMInterface.MMSpriteReplace.SwitchToOffSprite |
( |
| ) |
|
|
virtual |
a public method to switch to off sprite directly
◆ SwitchToOnSprite()
virtual void MoreMountains.MMInterface.MMSpriteReplace.SwitchToOnSprite |
( |
| ) |
|
|
virtual |
a public method to switch to on sprite directly
◆ _image
Image MoreMountains.MMInterface.MMSpriteReplace._image |
|
protected |
◆ _mmTouchButton
MMTouchButton MoreMountains.MMInterface.MMSpriteReplace._mmTouchButton |
|
protected |
◆ _spriteRenderer
SpriteRenderer MoreMountains.MMInterface.MMSpriteReplace._spriteRenderer |
|
protected |
◆ OffSprite
Sprite MoreMountains.MMInterface.MMSpriteReplace.OffSprite |
the sprite to use when in the "off" state
◆ OnSprite
Sprite MoreMountains.MMInterface.MMSpriteReplace.OnSprite |
the sprite to use when in the "on" state
◆ StartsOn
bool MoreMountains.MMInterface.MMSpriteReplace.StartsOn = true |
if this is true, the button will start if "on" state
◆ SwapButton
bool MoreMountains.MMInterface.MMSpriteReplace.SwapButton |
◆ SwitchToOffSpriteButton
bool MoreMountains.MMInterface.MMSpriteReplace.SwitchToOffSpriteButton |
◆ SwitchToOnSpriteButton
bool MoreMountains.MMInterface.MMSpriteReplace.SwitchToOnSpriteButton |
◆ CurrentValue
bool MoreMountains.MMInterface.MMSpriteReplace.CurrentValue |
|
get |
the current state of the button
The documentation for this class was generated from the following file:
- Assets/InfiniteRunnerEngine/ThirdParty/MoreMountains/MMInterface/Common/Scripts/MMSpriteReplace.cs