Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 public AnimToTransitionEntry(TransitionCondition transitionCondition, IAnimatedBehavior behavior)
 {
     TransitionCondition = transitionCondition;
     Behavior            = behavior;
 }
Esempio n. 3
0
        private static Vector3 ToPotentialGridPosition(TransitionCondition transitionCondition)
        {
            var positionInList = transitionCondition.LayerOrdinal;

            return(GridPosition((int)transitionCondition.Permutation.Right, positionInList * 8 + (int)transitionCondition.Permutation.Left));
        }