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

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