少年修仙传客户端代码仓库
client_Wu Xijin
2018-10-16 976ffa9fc1be319284ff22dafa3c7809be350d30
UI/Common/UI3DModelFactory.cs
@@ -179,6 +179,14 @@
        var animator = model.GetComponent<Animator>();
        if (animator != null)
        {
            var config = Config.Instance.Get<NPCConfig>(id);
            var suffix = AnimatorControllerLoader.controllerUISuffix;
            var animatorController = AnimatorControllerLoader.LoadMobController(suffix, config.MODE);
            if (animatorController != null)
            {
                animator.runtimeAnimatorController = animatorController;
            }
            animator.enabled = true;
            animator.SetInteger(GAStaticDefine.Param_Action, GAStaticDefine.Act_Idle);
            animator.Play(GAStaticDefine.State_IdleHash);