add AacFlStateMachine.Restarts() for self-transitions
This commit is contained in:
@@ -206,7 +206,6 @@ namespace AnimatorAsCode.V0
|
|||||||
return EntryTransition(this, ParentMachine.Machine);
|
return EntryTransition(this, ParentMachine.Machine);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public AacFlNewTransitionContinuation TransitionsTo(AacFlState destination)
|
public AacFlNewTransitionContinuation TransitionsTo(AacFlState destination)
|
||||||
{
|
{
|
||||||
return new AacFlNewTransitionContinuation(ParentMachine.Machine.AddStateMachineTransition(Machine, destination.State), ParentMachine.Machine, Machine, destination.State);
|
return new AacFlNewTransitionContinuation(ParentMachine.Machine.AddStateMachineTransition(Machine, destination.State), ParentMachine.Machine, Machine, destination.State);
|
||||||
@@ -217,6 +216,11 @@ namespace AnimatorAsCode.V0
|
|||||||
return new AacFlNewTransitionContinuation(ParentMachine.Machine.AddStateMachineTransition(Machine, destination.Machine), ParentMachine.Machine, Machine, destination.Machine);
|
return new AacFlNewTransitionContinuation(ParentMachine.Machine.AddStateMachineTransition(Machine, destination.Machine), ParentMachine.Machine, Machine, destination.Machine);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public AacFlNewTransitionContinuation Restarts()
|
||||||
|
{
|
||||||
|
return new AacFlNewTransitionContinuation(ParentMachine.Machine.AddStateMachineTransition(Machine, Machine), ParentMachine.Machine, Machine, Machine);
|
||||||
|
}
|
||||||
|
|
||||||
public AacFlNewTransitionContinuation Exits()
|
public AacFlNewTransitionContinuation Exits()
|
||||||
{
|
{
|
||||||
return new AacFlNewTransitionContinuation(ParentMachine.Machine.AddStateMachineExitTransition(Machine), ParentMachine.Machine, Machine, null);
|
return new AacFlNewTransitionContinuation(ParentMachine.Machine.AddStateMachineExitTransition(Machine), ParentMachine.Machine, Machine, null);
|
||||||
|
|||||||
Reference in New Issue
Block a user