fix isDefault on dissolves
This commit is contained in:
parent
3a51c82762
commit
1e82822d3e
1 changed files with 2 additions and 10 deletions
|
|
@ -149,8 +149,8 @@ namespace gay.lilyy.SoldAvatarBootstrap
|
|||
var off = layer.NewState("Off").WithAnimation(offClip);
|
||||
var on = layer.NewState("On").WithAnimation(onClip);
|
||||
|
||||
// if (assets.isPC)
|
||||
// {
|
||||
layer.WithDefaultState(isDefault ? on : off);
|
||||
|
||||
var transitionClip = assets.aac.NewClip().Animating(anim =>
|
||||
{
|
||||
if (hooks != null && hooks.TransitionAnim != null) hooks.TransitionAnim(anim);
|
||||
|
|
@ -171,14 +171,6 @@ namespace gay.lilyy.SoldAvatarBootstrap
|
|||
off.TransitionsTo(offToOn).When(param.IsTrue());
|
||||
offToOn.TransitionsTo(on).AfterAnimationFinishes();
|
||||
}
|
||||
// else
|
||||
// {
|
||||
// on.TransitionsTo(off).When(param.IsFalse());
|
||||
// off.TransitionsTo(on).When(param.IsTrue());
|
||||
// }
|
||||
|
||||
// layer.WithDefaultState(isDefault ? on : off);
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue