示例#1
0
    public void PlayCountDown(Action callback = null, int round = 0, string message = "", bool isShowSound = true)
    {
        GameObject     countObject = Utils.Spawn(CountDownPrefab, CountDownRoot);
        CountDownPanel countDown   = countObject.GetComponent <CountDownPanel>();

        countDown.Init(callback, round, message, isShowSound);
    }
示例#2
0
    private void OnShowTutorialResponse()
    {
        AudioManager.StopMusic();
        KinectInputModule.Instance.AllowUpdate = false;
        GameObject     countObject = Utils.Spawn(CountDownPrefab, CountDownRoot);
        CountDownPanel countDown   = countObject.GetComponent <CountDownPanel>();

        countDown.Init(OnCountdownResponse, 1, "", false);
        AudioManager.PlaySound(CounGo);
    }