예제 #1
0
        public RuntimeAnimatorController GetAnimator(string _path, Action <RuntimeAnimatorController> _callBack)
        {
            AnimatorFactoryUnit unit;

            if (!dic.TryGetValue(_path, out unit))
            {
                unit = new AnimatorFactoryUnit(_path);

                dic.Add(_path, unit);
            }

            return(unit.GetAnimator(_callBack));
        }
예제 #2
0
        public RuntimeAnimatorController GetAnimator(string _path, Action <RuntimeAnimatorController, string> _callBack)
        {
            AnimatorFactoryUnit unit;

            if (!dic.ContainsKey(_path))
            {
                unit = new AnimatorFactoryUnit(_path);

                dic.Add(_path, unit);
            }
            else
            {
                unit = dic [_path];
            }

            return(unit.GetAnimator(_callBack));
        }