public I_EntityAnimationGroup GetAnimationGroup() { if (_group == null) { _group = GetComponent <EntityAnimGroupTTT>(); } return(_group); }
// 初始化GameObject的相关东西 private void _init_gameobject() { // 加载模型 BaseEntityController go = TransformPool.Instance.Pop <BaseEntityController> ("res_bundle/prefab/model/Character/" + "NPC_Zhaoyun_001_02.prefab" /*_cnf.prefab_name*/); EntityController = go; EntityController.InitOutTrigger(this, this, this); _animGroup = go.GetAnimationGroup(); _animGroup.OnInit(this); _animGroup.OnRegisterHandler(); _movement = go.GetComponent <EntityMovement>(); _movement._base_entity = this; }