Exemplo n.º 1
0
    /// <summary>
    /// Sets up gameplay UI controls for the UIManager.
    /// </summary>
    /// <remarks>This is called every time GameplayUI scene loads.</remarks>
    public void SetUpGameplayUI(GameplayUIData gameplayUIData)
    {
        this.gameplayUIData = gameplayUIData;

        ResetGameplayUI();
        SetUpGameplayMenuHandlers();
    }
Exemplo n.º 2
0
 private void OnSceneLoaded(Scene loadedScene, LoadSceneMode loadSceneMode)
 {
     if (loadedScene.name == Constants.MainMenuSceneName)
     {
         // GameplayUIData holds only nulls, because GameplayUI scene was removed.
         // IsReadyToReceiveUpdates property needs to return false and that is assured by setting gameplayUIData to null
         gameplayUIData = null;
     }
 }