Beispiel #1
0
    void HiddenGameOverObj()
    {
        if (!GameOverObj.activeSelf)
        {
            return;
        }
        CancelInvoke("HiddenGameOverObj");
        GameOverObj.SetActive(false);
#if NOT_SHOW_DAOJISHI_UI //不显示倒计时UI.
        if (XkGameCtrl.PlayerActiveNum <= 0)
        {
            //没有激活一个玩家.
            XkGameCtrl.GetInstance().OpenAllAiPlayerTank();
        }
#else
        if (XkGameCtrl.PlayerActiveNum <= 0)
        {
            //没有激活一个玩家.
            bool isDisplay = GetIsHaveDaoJiShiDisplaying();
            if (isDisplay == false)
            {
                XkGameCtrl.GetInstance().OpenAllAiPlayerTank();
            }
        }
#endif

        //游戏倒计时结束后清空玩家所得彩票数(代金券)
        if (XkPlayerCtrl.GetInstanceFeiJi() != null)
        {
            XkPlayerCtrl.GetInstanceFeiJi().m_SpawnNpcManage.m_CaiPiaoDataManage.ClearPlayerCaiPiaoData(PlayerIndex);
        }

        CoinPlayerCtrl playerCoinCom = CoinPlayerCtrl.GetInstance(PlayerIndex);
        if (playerCoinCom != null)
        {
            playerCoinCom.SetActiveMianFeiTiYanUI(false);
        }
    }