Beispiel #1
0
    public void Do()
    {
        if (_is_playing)
        {
            _Time_Since_Start += Time.deltaTime * 1000;
            if (_Time_Since_Start > _length)
            {
                OnEnd();
            }

            foreach (HitObject HO in HitObjects)
            {
                if (HO._is_hittable)
                {
                    if (HO._offset + HO._size < _Time_Since_Start)
                    {
                        HO.OnKill();
                        ++_miss;
                    }
                }
            }
        }
    }