Пример #1
0
    public void SetFocus(bool focus)
    {
        if (focus)
        {
            MsgInteractiveInfo msg = MessageSingleton.Get <MsgInteractiveInfo>();
            msg.Describe = null;

            MissionProxy missionProxy = GameFacade.Instance.RetrieveProxy(ProxyName.MissionProxy) as MissionProxy;
            if (missionProxy.GetCanSubmitMissionBy(GetTemplateID()) == null)
            {
                string fKeyText = missionProxy.GetTalkMissionFKeyText(GetTemplateID());
                if (!string.IsNullOrEmpty(fKeyText))
                {
                    msg.Describe = fKeyText;
                }
            }

            msg.Tid = GetTemplateID();
            msg.MustUseHumanFBox = false;
            GameFacade.Instance.SendNotification(NotificationName.MSG_INTERACTIVE_SHOWFLAG, msg);
        }
        else
        {
            GameFacade.Instance.SendNotification(NotificationName.MSG_INTERACTIVE_HIDEFLAG);
            if (m_NpcTmpVO.DialogueTurn == 1)
            {
                GetSkinTransform().DORotateQuaternion(m_BornServerRotation, 0.5f);
            }
        }
    }