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)); }
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)); }