Example #1
0
    private void OnLevelWasLoaded(int level)
    {
        // Reset objects
        CombatManager.Clear();
        filler.Clear();

        // Update UI
        bool b = SceneManager.GetActiveScene().name.Contains("Level_");

        mainMenu.gameObject.SetActive(!b);
        ingameMenu.gameObject.SetActive(b);
    }