Example #1
0
 /// <summary> 初始化 </summary>
 /// <param name="target"></param>
 /// <param name="nickName"></param>
 public void Init(Transform target, NPCDataEntity entity)
 {
     m_Target        = target;
     m_NPCDataEntity = entity;
     m_NickName.text = m_NPCDataEntity.Name;
     m_Talk          = m_NPCDataEntity.Talk;
     DOPlayerAnimation();
 }
Example #2
0
 private void OnDisable()
 {
     m_NickName      = null;
     m_Target        = null;
     m_Trans         = null;
     m_RectTrans     = null;
     m_TalkBg        = null;
     m_TalkText      = null;
     m_Talk          = null;
     m_NPCDataEntity = null;
     tweener         = null;
     FrameTimerManager.Instance.RemoveCallback(ShowNPCTalk);
 }
Example #3
0
 /// <summary> 初始化 </summary>
 /// <param name="currNPCDataEntity">NPC数据实体</param>
 public void Init(NPCDataEntity currNPCDataEntity)
 {
     m_CurrNPCDataEntity = currNPCDataEntity;
 }