public void OnEnterShape() { HintManager.Instance.SpawnHint(_hint); if (_onlyOnce && _timesPlayed == 0) { _hint.StartAsync(); } else if (!_onlyOnce) { _hint.StartAsync(); } _timesPlayed++; }
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); }