private static int?GetNullableStageValue(TransitionCondition transitionCondition) { switch (transitionCondition) { case TransitionCondition.ActivityBoundTransitionCondition abc: return(abc.StageValue); case TransitionCondition.PuppetBoundTransitionCondition pbc: return(pbc.StageValue); default: return(null); } }
public AnimToTransitionEntry(TransitionCondition transitionCondition, IAnimatedBehavior behavior) { TransitionCondition = transitionCondition; Behavior = behavior; }
private static Vector3 ToPotentialGridPosition(TransitionCondition transitionCondition) { var positionInList = transitionCondition.LayerOrdinal; return(GridPosition((int)transitionCondition.Permutation.Right, positionInList * 8 + (int)transitionCondition.Permutation.Left)); }