Update transforms to not accept clock.

This commit is contained in:
Dean Herbert
2016-10-28 17:42:00 +09:00
parent 0e39c5cc9c
commit 13b5fb0578
10 changed files with 34 additions and 56 deletions

View File

@ -194,14 +194,12 @@ namespace osu.Game.Graphics.UserInterface
/// <seealso cref="TransformType"/>
protected virtual void TransformCount(T currentValue, T newValue)
{
object[] parameters = { Clock };
Debug.Assert(
TransformType.IsSubclassOf(typeof(Transform<T>)) || TransformType == typeof(Transform<T>),
@"transformType should be a subclass of Transform<T>."
);
TransformCount((Transform<T>)Activator.CreateInstance(TransformType, parameters), currentValue, newValue);
TransformCount((Transform<T>)Activator.CreateInstance(TransformType), currentValue, newValue);
}
/// <summary>