コード例 #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));
        }