Exemplo n.º 1
0
    // Destroy world map
    public void DestroyWorldMap()
    {
        if (_activeWorldmap != null)
        {
            _activeWorldmap.SetActive(false);
        }
        SoundManager.Instance.PlayBGM("town_theme.mp3", 1.0f);

        CameraController.Instance.gameObject.SetActive(true);
        CustomUIRenderer.SetEnable(true);
    }
Exemplo n.º 2
0
    // Create world map.
    public void CreateWorldMap(int worldmapIdx)
    {
        ActiveWorldMap(worldmapIdx);

        CameraController.Instance.gameObject.SetActive(false);
        CustomUIRenderer.SetEnable(false);

        SoundManager.Instance.PlayBGM(_bgMusic, 1.0f);

        UpdateLevelButtonsState();
    }