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