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 ShowStartScreen( ) { StartGameScreen.SetActive(true); InstructionScreen.SetActive(false); Marketplace.SetActive(false); PauseScreen.SetActive(false); GameHUD.SetActive(false); GameInfoHUD.SetActive(false); CurrentGameState = GameState.MENU; }
public void LeaveMarketplace( ) { Marketplace.SetActive(false); GameHUD.SetActive(true); GameInfoHUD.SetActive(true); }
public void GoToMarketplace( ) { Marketplace.SetActive(true); GameInfoHUD.SetActive(false); }