示例#1
0
    public static BombManager GetInstance()
    {
        if(instance == null)
        {
            instance = new BombManager();
            instance.Init();
        }

        return instance;
    }
示例#2
0
    private void GameInit()
    {
        Debug.Log("Game Init");
        ScoreManagerInstance.Init();
        BombManagerInstance.Init();

        // 确保面板不显示
        PausePanel.SetActive(false);
        GameResultPanel.SetActive(false);

        m_CurrentState = GameState.Start;
    }
    // 游戏初始化
    private void GameInit()
    {
        // 执行一些游戏预操作,例如初始化其他Manager、播放过场动画和进行倒计时等
        ScoreManagerInstance.Init();
        BombManagerInstance.Init();

        // 确保不显示
        PausedPanel.SetActive(false);
        GameResultPanel.SetActive(false);

        // 进入游戏开始状态
        m_CurrentState = GameState.Start;
    }