コード例 #1
0
        public void OnEnterShape()
        {
            HintManager.Instance.SpawnHint(_hint);
            if (_onlyOnce && _timesPlayed == 0)
            {
                _hint.StartAsync();
            }
            else if (!_onlyOnce)
            {
                _hint.StartAsync();
            }

            _timesPlayed++;
        }
コード例 #2
0
        public FadeHint SpawnHint(string text, Vector2 position, float fadeInTime, float fadeOutTime)
        {
            FadeHint hint = new FadeHint(text, position, fadeInTime, fadeOutTime);

            _fadeHints.Add(hint);
            hint.StartAsync();
            return(hint);
        }