Exemplo n.º 1
0
    void Update()
    {
        if (mTimeOut)
        {
//			if(UtilMgr.HasBackEvent)
//				UtilMgr.OnBackPressed ();
            UtilMgr.RunAllBackEvents();
            return;
        }

        CalcTime();
    }
Exemplo n.º 2
0
    public void OpenBetting(QuizInfo quizInfo)
    {
                #if (UNITY_EDITOR)
                #elif (UNITY_ANDROID)
                #else
                #endif

        if (UtilMgr.HasBackEvent())
        {
            UtilMgr.RunAllBackEvents();
        }
        QuizMgr.QuizInfo         = quizInfo;
        QuizMgr.IsBettingOpended = true;
        QuizMgr.JoinCount        = 0;

        UtilMgr.SetBackEvent(new EventDelegate(this, "AnimateClosing"));

        mBetting.SetActive(true);
        mBetting.GetComponent <ScriptTF_Betting> ().Init(quizInfo);

        transform.GetComponent <PlayMakerFSM> ().SendEvent("OpenBetting");
        transform.root.GetComponent <AudioSource>().PlayOneShot(mSoundOpenBet);
    }