Add AacFlLayer.WithDefaultState(...) to change the default state:

- Add WithDefaultState to change the default state of a layer
This commit is contained in:
Haï~
2022-03-20 05:19:04 +01:00
parent e31fbb1586
commit 573fc7eaef
3 changed files with 13 additions and 0 deletions
+6
View File
@@ -239,6 +239,12 @@ namespace AnimatorAsCode.V0
WithAvatarMask(avatarMask);
}
public AacFlLayer WithDefaultState(AacFlState newDefaultState)
{
_stateMachine.WithDefaultState(newDefaultState);
return this;
}
}
public class AacFlBase
+6
View File
@@ -197,6 +197,12 @@ namespace AnimatorAsCode.V0
{
return new Vector3(x * _gridShiftX , y * _gridShiftY, 0);
}
public AacStateMachine WithDefaultState(AacFlState newDefaultState)
{
_machine.defaultState = newDefaultState.State;
return this;
}
}
public class AacFlState