コード例 #1
0
        protected virtual void DrawSelf()
        {
            if (_computationDrawn)
            {
                return;
            }

            if (Status == NoteStatus.Shown)
            {
                if (_noteHandle == 0)
                {
                    _noteHandle = _scene.CreateNote(TextureId, Id);
                }
                _scene.SetNote(_noteHandle, StartPosition, TouchPosition, _t);
            }
            else
            {
                Destroy(ref _noteHandle);
                Destroy(ref _lineHandle);
                Destroy(ref _gpLineHandle);
            }

            _computationDrawn = true;
        }