Пример #1
0
        public static AnimatorStateTransition FetchTransition(AnimatorController ac, DataManipulationRecord request)
        {
            if (null == request.TransitionNum_ofFullpath)
            {
                throw new UnityException("Transition number is null. number=[" + request.TransitionNum_ofFullpath + "] ac=[" + ac.name + "]");
            }
            int transitionNum_ofFullpath = int.Parse(request.TransitionNum_ofFullpath);

            return(FetchTransition_ByFullpath(ac, request.Fullpath, transitionNum_ofFullpath));
        }
Пример #2
0
        public static ConditionRecord.AnimatorConditionWrapper FetchCondition(AnimatorController ac, DataManipulationRecord request)
        {
            AnimatorStateTransition transition = AconFetcher.FetchTransition(ac, request);

            if (null != transition)
            {
                return(AconFetcher.FetchCondition(ac, request));
            }

            return(null);
        }