C# Class GameStateController, Hero.Coli

Inheritance: MonoBehaviour
ファイルを表示 Open project: CyberCRI/Hero.Coli Class Usage Examples

Public Properties

Property Type Description
_bacteriumScene string
_craftingKey string
_forgetDevicesKey string
_interfaceScene string
_inventoryKey string
_masterScene string
_pauseKey string
_sandboxKey string
endMainMenuButton EndMainMenuButton,
fadeSprite Fade,
gUITransitioner GUITransitioner,
gameObjectName string
intro GameObject
introContinueButton ContinueButton,
keyPrefix string
mainMenu MainMenuManager,

Public Methods

Method Description
changeState ( GameState, newState ) : void
endGame ( ) : void
get ( ) : GameStateController,
getKeyCode ( string localizationKey ) : KeyCode,
getPausesInStackCount ( ) : int
getState ( ) : GameState,
goToMainMenu ( ) : void
goToMainMenuFrom ( GameState, state ) : void
goToOtherGameMode ( ) : void
isShortcutKey ( KeyCode, code, bool restricted = false ) : bool
isShortcutKey ( string localizationKey, bool restricted = false ) : bool
isShortcutKeyDown ( KeyCode, code, bool restricted = false ) : bool
isShortcutKeyDown ( string localizationKey, bool restricted = false ) : bool
leaveMainMenu ( ) : void
popPauseInStack ( ) : int
restart ( ) : void
setAndSaveLevelName ( GameConfiguration, newMap, string cause = null ) : void
triggerEnd ( EndGameCollider, egc ) : void
tryLockPause ( ) : void
tryUnlockPause ( ) : void
updateAdminStatus ( ) : void

Private Methods

Method Description
Awake ( ) : void
OnDestroy ( ) : void
Start ( ) : void
Update ( ) : void
getStateFromTarget ( GameStateTarget target ) : GameState,
internalRestart ( ) : void
loadLevels ( ) : void
prepareGameLevelIfNecessary ( ) : void
pushPauseInStack ( ) : int
resetPauseStack ( ) : void
waitFade ( float waitTime, EndGameCollider, egc ) : IEnumerator

Method Details

changeState() public method

public changeState ( GameState, newState ) : void
newState GameState,
return void

endGame() public method

public endGame ( ) : void
return void

get() public static method

public static get ( ) : GameStateController,
return GameStateController,

getKeyCode() public static method

public static getKeyCode ( string localizationKey ) : KeyCode,
localizationKey string
return KeyCode,

getPausesInStackCount() public static method

public static getPausesInStackCount ( ) : int
return int

getState() public method

public getState ( ) : GameState,
return GameState,

goToMainMenu() public method

public goToMainMenu ( ) : void
return void

goToMainMenuFrom() public method

public goToMainMenuFrom ( GameState, state ) : void
state GameState,
return void

goToOtherGameMode() public method

public goToOtherGameMode ( ) : void
return void

isShortcutKey() public static method

public static isShortcutKey ( KeyCode, code, bool restricted = false ) : bool
code KeyCode,
restricted bool
return bool

isShortcutKey() public static method

public static isShortcutKey ( string localizationKey, bool restricted = false ) : bool
localizationKey string
restricted bool
return bool

isShortcutKeyDown() public static method

public static isShortcutKeyDown ( KeyCode, code, bool restricted = false ) : bool
code KeyCode,
restricted bool
return bool

isShortcutKeyDown() public static method

public static isShortcutKeyDown ( string localizationKey, bool restricted = false ) : bool
localizationKey string
restricted bool
return bool

leaveMainMenu() public method

public leaveMainMenu ( ) : void
return void

popPauseInStack() public method

public popPauseInStack ( ) : int
return int

restart() public static method

public static restart ( ) : void
return void

setAndSaveLevelName() public method

public setAndSaveLevelName ( GameConfiguration, newMap, string cause = null ) : void
newMap GameConfiguration,
cause string
return void

triggerEnd() public method

public triggerEnd ( EndGameCollider, egc ) : void
egc EndGameCollider,
return void

tryLockPause() public method

public tryLockPause ( ) : void
return void

tryUnlockPause() public method

public tryUnlockPause ( ) : void
return void

updateAdminStatus() public static method

public static updateAdminStatus ( ) : void
return void

Property Details

_bacteriumScene public_oe static_oe property

public static string _bacteriumScene
return string

_craftingKey public_oe static_oe property

public static string _craftingKey
return string

_forgetDevicesKey public_oe static_oe property

public static string _forgetDevicesKey
return string

_interfaceScene public_oe static_oe property

public static string _interfaceScene
return string

_inventoryKey public_oe static_oe property

public static string _inventoryKey
return string

_masterScene public_oe static_oe property

public static string _masterScene
return string

_pauseKey public_oe static_oe property

public static string _pauseKey
return string

_sandboxKey public_oe static_oe property

public static string _sandboxKey
return string

endMainMenuButton public_oe property

public EndMainMenuButton, endMainMenuButton
return EndMainMenuButton,

fadeSprite public_oe property

public Fade, fadeSprite
return Fade,

gUITransitioner public_oe property

public GUITransitioner, gUITransitioner
return GUITransitioner,

gameObjectName public_oe static_oe property

public static string gameObjectName
return string

intro public_oe property

public GameObject intro
return GameObject

introContinueButton public_oe property

public ContinueButton, introContinueButton
return ContinueButton,

keyPrefix public_oe static_oe property

public static string keyPrefix
return string

mainMenu public_oe property

public MainMenuManager, mainMenu
return MainMenuManager,