C# Class Fungus.SaveMenu

A singleton game object which displays a simple UI for the save system.
Inheritance: UnityEngine.MonoBehaviour
显示文件 Open project: snozbot/fungus Class Usage Examples

Protected Properties

Property Type Description
clickAudioSource UnityEngine.AudioSource
fadeTween LTDescr
instance SaveMenu
saveMenuActive bool

Public Methods

Method Description
FastForward ( ) : void

Handler function called when the Fast Forward button is pressed.

Load ( ) : void

Handler function called when the Load button is pressed.

Restart ( ) : void

Handler function called when the Restart button is pressed.

Rewind ( ) : void

Handler function called when the Rewind button is pressed.

Save ( ) : void

Handler function called when the Save button is pressed.

ToggleSaveMenu ( ) : void

Toggles the expanded / collapsed state of the save menu. Uses a tween to fade the menu UI in and out.

Protected Methods

Method Description
Awake ( ) : void
OnDisable ( ) : void
OnEnable ( ) : void
OnSavePointAdded ( string savePointKey, string savePointDescription ) : void
PlayClickSound ( ) : void
Start ( ) : void
Update ( ) : void

Method Details

Awake() protected method

protected Awake ( ) : void
return void

FastForward() public method

Handler function called when the Fast Forward button is pressed.
public FastForward ( ) : void
return void

Load() public method

Handler function called when the Load button is pressed.
public Load ( ) : void
return void

OnDisable() protected method

protected OnDisable ( ) : void
return void

OnEnable() protected method

protected OnEnable ( ) : void
return void

OnSavePointAdded() protected method

protected OnSavePointAdded ( string savePointKey, string savePointDescription ) : void
savePointKey string
savePointDescription string
return void

PlayClickSound() protected method

protected PlayClickSound ( ) : void
return void

Restart() public method

Handler function called when the Restart button is pressed.
public Restart ( ) : void
return void

Rewind() public method

Handler function called when the Rewind button is pressed.
public Rewind ( ) : void
return void

Save() public method

Handler function called when the Save button is pressed.
public Save ( ) : void
return void

Start() protected method

protected Start ( ) : void
return void

ToggleSaveMenu() public method

Toggles the expanded / collapsed state of the save menu. Uses a tween to fade the menu UI in and out.
public ToggleSaveMenu ( ) : void
return void

Update() protected method

protected Update ( ) : void
return void

Property Details

clickAudioSource protected_oe property

protected AudioSource,UnityEngine clickAudioSource
return UnityEngine.AudioSource

fadeTween protected_oe property

protected LTDescr fadeTween
return LTDescr

instance protected_oe static_oe property

protected static SaveMenu,Fungus instance
return SaveMenu

saveMenuActive protected_oe static_oe property

protected static bool saveMenuActive
return bool