void OnClickBeginBtInMoview()     //循环动画界面响应开始按键1P
 {
     if (MovieTexturePlay.GetInstance().GameMode == "free")
     {
         Application.LoadLevel(1 + pcvr.chenNum);
     }
 }
 void OnClickInsertBtInMoview()     //循环动画界面响应投币按键
 {
     if (MovieTexturePlay.GetInstance().GameMode == "oper")
     {
         MovieTexturePlay.GetInstance().OnClickInsertBt();
     }
 }
Example #3
0
    void Start()
    {
        int volumNum = Convert.ToInt32(ReadGameInfo.GetInstance().ReadVolumeNum());

        AudioListener.volume = volumNum * 0.1f;

        UpdateInsertCoin();

        CHEN = ReadGameInfo.GetInstance().ReadCHEN();
        if (CHEN == "EN")
        {
            chenNum = 5;
            if (Application.loadedLevel == 0)
            {
                Application.LoadLevel(0 + chenNum);
            }
        }
        else
        {
            chenNum = 0;
        }

        if (pcvr.bIsHardWare)
        {
            Screen.showCursor = false;
            Screen.SetResolution(1360, 768, true);
            PlayerController.inGame = false;
            pcvr.bZhendong          = false;
            pcvr.dianboState        = 0;
            //MyCOMDevice.ComThreadClass.IsLoadingLevel = false;
            Invoke("SetLoade", 0.1f);

            if (pcvr.GetInstance())
            {
                pcvr.GetInstance().gunShakeOpen = false;
            }
        }

        //Screen.showCursor = false;
        pcvr.GetInstance();
        CtrlForHardWare.GetInstance();
        Debug.Log("pcvr.CoinCurGame" + ReadGameInfo.GetInstance().ReadInsertCoinNum());
        m_MovieTex.loop = true;
        m_MovieTex.Play();

        if (m_Donghua)
        {
            m_Donghua.loop = true;
            m_Donghua.Play();
        }

        if (pcvr.bIsAutoMoveSelf)
        {
            autoTime = 6.0f;
        }
        else
        {
            GameMode = ReadGameInfo.GetInstance().ReadGameStarMode();
        }

        if (GameMode == "oper")
        {
            m_pMianfeiobject.SetActive(false);
            m_pToubiobject.SetActive(true);
            CoinNumSet = ReadGameInfo.GetInstance().ReadStarCoinNumSet();
            CoinNumSetTex.spriteName = CoinNumSet;
        }
        else
        {
            m_pMianfeiobject.SetActive(true);
            m_pToubiobject.SetActive(false);
        }

        ANQUANDAI = ReadGameInfo.GetInstance().ReadAnquandai();

        if (ANQUANDAI == "close" || pcvr.bIsAutoMoveSelf)
        {
            pcvr.openAanquandai = false;
            pcvr.GetInstance().p1AnquandaiOpen = true;
            pcvr.GetInstance().p2AnquandaiOpen = true;
        }
        else
        {
            pcvr.openAanquandai = true;
        }

        Instance = this;
    }