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); }
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); }