TryCancel() and TryComplete() have been added to MotionHandle. This makes it possible to write the following code more concisely.
// before
if (handle.IsActive())
{
handle.Cancel();
}
// after
handle.TryCancel();
In addition, calling Complete() for infinitely looping motions has been changed to throw InvalidOperationException. Furthermore, the error message has been improved to make it easier for users to understand.
TryCancel()
andTryComplete()
have been added toMotionHandle
. This makes it possible to write the following code more concisely.In addition, calling
Complete()
for infinitely looping motions has been changed to throwInvalidOperationException
. Furthermore, the error message has been improved to make it easier for users to understand.