Exemplo n.º 1
0
 public void ClosePauseMenu()
 {
     gameObject.SetActive(false);
     UiEventManager.ShowHud();
     SoundManager.PlayEvent(AKID.EVENTS.MENU_RESUME, gameObject);
     Time.timeScale = 1;
 }
Exemplo n.º 2
0
    private void OpenPauseMenu()
    {
        gameObject.SetActive(true);
        UiEventManager.HideHud();
        SoundManager.PlayEvent(AKID.EVENTS.MENU_PAUSE, gameObject);

        Time.timeScale = 0;
    }
Exemplo n.º 3
0
 private void Form1_Load(object sender, EventArgs e)
 {
     eventManager = new UiEventManager(dataGridView1, this);
     indication   = new Indication(this);
     InitializeAppProperties();
     try
     {
         client = new ClientLauncher(eventManager, this);
         client.Launch();
         eventManager.client = client;
         StatusesForOwner.Init(client.GetServerInstance());
         eventManager.GetEventList();
         eventManager.HideClosedEventsAccordingToConfigValue();
     }
     catch (UserIsNullException) //user has not logged in
     {
         ExitApp();
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// Displays the win screen when the game is completed, and hides the HUD.
 /// </summary>
 private void ShowWinScreen()
 {
     gameObject.SetActive(true);
     UiEventManager.HideHud();
 }