コード例 #1
0
ファイル: ScriptMainTop.cs プロジェクト: streetlab/LiveBall
    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);
    }