Exemplo n.º 1
0
 protected Vector2 OnChangeColorPosition(float scale, float timediff)
 {
     if (ChangeColorPosition != null)
     {
         return(ChangeColorPosition.Invoke(scale, timediff));
     }
     else
     {
         return(new Vector2(300 * timediff * scale, -30 * (float)Math.Sin(timediff * scale * Math.PI)));
     }
 }
Exemplo n.º 2
0
        protected Vector2 OnChangeColorPosition(IMarkInfo markInfo, float scale, float timediff, float currentTime, float bpm)
        {
            if (CheckColorPosition != null)
            {
                if (CheckColorPosition.Invoke(markInfo, currentTime, bpm))
                {
                    return(markInfo.ColorPosition);
                }
            }

            Vector2 vec;

            if (ChangeColorPosition != null)
            {
                vec = ChangeColorPosition.Invoke(scale, timediff);
            }
            else
            {
                vec = new Vector2(300 * timediff * scale, -30 * (float)Math.Sin(timediff * scale * Math.PI));
            }

            vec = Vector2.TransformCoordinate(vec, matrix);
            return(vec);
        }