public void ExcuteEvent() { if (OnNpcRenwuHide != null) { OnNpcRenwuHide(); } if (talkFinishCallBack_ != null) { talkFinishCallBack_(); talkFinishCallBack_ = null; } }
public static void ShowDialogByTalk(int talkId) { if (GamePlayer.Instance.leaderSkipTalk || talkId == 0) { GamePlayer.Instance.leaderSkipTalk = false; if (talkFinishCallBack_ != null) { talkFinishCallBack_(); talkFinishCallBack_ = null; } return; } TalkId_ = talkId; SwithShowMe(); if (AttaclEvent.getInstance.OnSetPanelActive != null) { AttaclEvent.getInstance.OnSetPanelActive(false); } GameManager.Instance.hidechatobj(); }