allow moving AnimatorNode movements between States and SSMs
This commit is contained in:
@@ -20,19 +20,19 @@ namespace AnimatorAsCode.V0
|
||||
DefaultsProvider = defaultsProvider;
|
||||
}
|
||||
|
||||
public TNode LeftOf(TNode otherNode) => MoveNextTo(otherNode, -1, 0);
|
||||
public TNode RightOf(TNode otherNode) => MoveNextTo(otherNode, 1, 0);
|
||||
public TNode Over(TNode otherNode) => MoveNextTo(otherNode, 0, -1);
|
||||
public TNode Under(TNode otherNode) => MoveNextTo(otherNode, 0, 1);
|
||||
public TNode LeftOf(AacAnimatorNode otherNode) => MoveNextTo(otherNode, -1, 0);
|
||||
public TNode RightOf(AacAnimatorNode otherNode) => MoveNextTo(otherNode, 1, 0);
|
||||
public TNode Over(AacAnimatorNode otherNode) => MoveNextTo(otherNode, 0, -1);
|
||||
public TNode Under(AacAnimatorNode otherNode) => MoveNextTo(otherNode, 0, 1);
|
||||
|
||||
public TNode LeftOf() => MoveNextTo(null, -1, 0);
|
||||
public TNode RightOf() => MoveNextTo(null, 1, 0);
|
||||
public TNode Over() => MoveNextTo(null, 0, -1);
|
||||
public TNode Under() => MoveNextTo(null, 0, 1);
|
||||
|
||||
public TNode Shift(TNode otherState, int shiftX, int shiftY) => MoveNextTo(otherState, shiftX, shiftY);
|
||||
public TNode Shift(AacAnimatorNode otherState, int shiftX, int shiftY) => MoveNextTo(otherState, shiftX, shiftY);
|
||||
|
||||
private TNode MoveNextTo(TNode otherStateOrSecondToLastWhenNull, int x, int y)
|
||||
private TNode MoveNextTo(AacAnimatorNode otherStateOrSecondToLastWhenNull, int x, int y)
|
||||
{
|
||||
if (otherStateOrSecondToLastWhenNull == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user