Esempio n. 1
0
        private void Update()
        {
            if (timeRemaining < 0f)
            {
                return;
            }

            timeRemaining   -= Time.deltaTime;
            secondsText.text = timeRemaining.ToString("0");

            if (timeRemaining < 0f)
            {
                SkillzState.NotifyMatchWillBegin(MatchInfoJson.Build(SkillzSettings.Instance.GameID));
            }
        }
        private void Update()
        {
            if (timeRemaining < 0f)
            {
                return;
            }

            timeRemaining   -= Time.deltaTime;
            secondsText.text = timeRemaining.ToString("0");

            if (timeRemaining < 0f)
            {
                var matchInfoJson = MatchInfoJson.Build(SkillzSettings.Instance.GameID);
                SkillzCrossPlatform.InitializeSimulatedMatch(matchInfoJson);
                SkillzState.NotifyMatchWillBegin(matchInfoJson);
            }
        }