void Start( ) { //Initiate data GameService.InitDocument( ); //Show the start game screen StartGameScreen.SetActive(true); // ON InstructionScreen.SetActive(false); Marketplace.SetActive(false); PauseScreen.SetActive(false); GameHUD.SetActive(false); GameInfoHUD.SetActive(false); BtnLive.SetActive(false); BtnShop.SetActive(false); //Set initial values SocialLevel = 0; VerbalLevel = 0; SkillLevel = 0; HardwareLevel = 0; Followers = 0; Viewers = 0; Money = 60.00f; StreamerName = ""; TotalStreamTime = 16.0f; StartCash = 0; GameMessageList = new List <KeyValuePair <string, string> >( ); PlayerOwnedGames = new List <Game>( ); //Set game state CurrentGameState = GameState.MENU; bGameStarted = false; }
/// <summary> /// Show Game instructions /// </summary> public void ShowInstructions( ) { StartGameScreen.SetActive(false); InstructionScreen.SetActive(true); PauseScreen.SetActive(false); GameHUD.SetActive(false); GameInfoHUD.SetActive(false); }
/// <summary> /// Show Game instructions /// </summary> public void ShowStartScreen( ) { StartGameScreen.SetActive(true); InstructionScreen.SetActive(false); Marketplace.SetActive(false); PauseScreen.SetActive(false); GameHUD.SetActive(false); GameInfoHUD.SetActive(false); CurrentGameState = GameState.MENU; }
/// <summary> /// Pause / unpause the game /// </summary> public void PauseGame( ) { bGamePaused = !bGamePaused; StartGameScreen.SetActive(false); InstructionScreen.SetActive(false); PauseScreen.SetActive(bGamePaused); GameHUD.SetActive(!bGamePaused); GameInfoHUD.SetActive(!bGamePaused); CurrentGameState = bGamePaused ? GameState.PAUSE : GameState.GAME; }
/// <summary> /// Start game and go to game hud & screen /// </summary> public void StartGame( ) { //show the game hud StartGameScreen.SetActive(false); InstructionScreen.SetActive(false); PauseScreen.SetActive(false); GameHUD.SetActive(true); // ON GameInfoHUD.SetActive(true); // ON CurrentGameState = GameState.GAME; StartCoroutine(StartGameCallback( )); }
public void LeaveMarketplace( ) { Marketplace.SetActive(false); GameHUD.SetActive(true); GameInfoHUD.SetActive(true); }
public void GoToMarketplace( ) { Marketplace.SetActive(true); GameInfoHUD.SetActive(false); }