| | |
| | | public byte status;
|
| | | }
|
| | |
|
| | | private enum E_AfterAttackType
|
| | | {
|
| | | None,
|
| | | RefreshRock,
|
| | | }
|
| | |
|
| | | private E_AfterAttackType m_AfterAttackType;
|
| | |
|
| | | public Dictionary<uint, Mission> s_MissionDict = new Dictionary<uint, Mission>();
|
| | | public Dictionary<uint, List<int>> missionNpcDict = new Dictionary<uint, List<int>>();
|
| | |
|
| | |
| | |
|
| | | public void Start()
|
| | | {
|
| | | NewGuideModel _model = ModelCenter.Instance.GetModel<NewGuideModel>();
|
| | | _model.arrowScale = 1;
|
| | |
|
| | | IsHeroCanCastSkill = false;
|
| | | Transform _temp = null;
|
| | | _temp = WindowCenter.Instance.uiRoot.baseCanvas.Find("MainInterfaceWin/CopyOfThePanel/TopRightTip");
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | WindowCenter.Instance.Close<NewGuideWin>();
|
| | | WindowCenter.Instance.Close<GuideMessageWin>();
|
| | |
|
| | | needCreate1002 = true;
|
| | |
| | | m_MoveToEffect = SFXPlayUtility.Instance.Play(1052, PlayerDatas.Instance.hero.Root);
|
| | | FaceTargetXZ _f = m_MoveToEffect.gameObject.AddComponent<FaceTargetXZ>();
|
| | | _f.target = m_FuncNpc.Root;
|
| | |
|
| | | SnxxzGame.Instance.StartCoroutine(WaitForGoToNpc(_pos));
|
| | |
|
| | | }
|
| | |
|
| | | private IEnumerator WaitForGoToNpc(Vector3 pos)
|
| | | {
|
| | | GA_Hero _hero = PlayerDatas.Instance.hero;
|
| | | while (true)
|
| | | {
|
| | | if (_hero.IsIdle())
|
| | | {
|
| | | break;
|
| | | }
|
| | | yield return null;
|
| | | }
|
| | | PlayerDatas.Instance.hero.MoveToPosition(pos);
|
| | | }
|
| | |
|
| | | private void HandlerMission(uint missionId)
|
| | |
| | | _temp.localScale = Vector3.one;
|
| | | NewGuideModel _model = ModelCenter.Instance.GetModel<NewGuideModel>();
|
| | | _model.showMask = false;
|
| | | _model.content = "返回向师兄回复";
|
| | | _model.content = "";
|
| | | _model.componentPath = "NormalCanvas/TreasureSelectWin/Btn_Back";
|
| | | _model.size = new Vector2(92, 81);
|
| | | _model.direction = 2;
|
| | | _model.arrowScale = 2;
|
| | | _model.pressedClose = false;
|
| | | _model.clickClosed = true;
|
| | | _model.onClose = null;
|
| | |
| | | m_UIEffect = EffectMgr.Instance.PlayUIEffect(1096, 4500, _temp, true);
|
| | |
|
| | | NewGuideModel _model2 = ModelCenter.Instance.GetModel<NewGuideModel>();
|
| | | _model2.showMask = true;
|
| | | _model2.showMask = false;
|
| | | _model2.content = "连续按图标\r\n使用<color=#00ff00>普通攻击</color>";
|
| | | _model2.componentPath = "BaseCanvas/MainInterfaceWin/SkillButtonTip/Pivot/CastSkillTip/AttackBtn";
|
| | | _model2.size = new Vector2(178, 178);
|
| | | _model2.direction = 0;
|
| | | _model2.pressedClose = true;
|
| | | _model2.clickClosed = true;
|
| | | _model2.onClose = () =>
|
| | | {
|
| | | // 打开小提示窗口
|
| | | GuideMessageModel _model = ModelCenter.Instance.GetModel<GuideMessageModel>();
|
| | | _model.content = "清除前方<color=#00ff00>所有敌人</color>";
|
| | | _model.duration = -1;
|
| | | _model2.pressedClose = false;
|
| | | _model2.clickClosed = false;
|
| | |
|
| | | WindowCenter.Instance.Open<GuideMessageWin>();
|
| | | m_AfterAttackType = E_AfterAttackType.RefreshRock;
|
| | | GA_Hero.OnUserClickSkill += OnCastSkill;
|
| | |
|
| | | if (m_UIEffect)
|
| | | {
|
| | | EffectMgr.Instance.RecyleUIEffect(m_UIEffect.effect, m_UIEffect.gameObject);
|
| | | m_UIEffect = null;
|
| | | }
|
| | |
|
| | | Refresh_1001();
|
| | |
|
| | | // 显示头像区域
|
| | | _temp = WindowCenter.Instance.uiRoot.baseCanvas.Find("MainInterfaceWin/HeadPortraitTip");
|
| | | _temp.localScale = Vector3.one;
|
| | |
|
| | | updateAI = true;
|
| | | };
|
| | | _model2.onClose = null;
|
| | |
|
| | | WindowCenter.Instance.Open<NewGuideWin>();
|
| | | });
|
| | |
| | | m_SimpleTransfer = CreateTransfer();
|
| | | }
|
| | |
|
| | | NewGuideModel _model2 = ModelCenter.Instance.GetModel<NewGuideModel>();
|
| | | _model2.showMask = false;
|
| | | _model2.content = "使用普通攻击\r\n破坏<color=#00ff00>栅栏</color>";
|
| | | _model2.componentPath = "BaseCanvas/MainInterfaceWin/SkillButtonTip/Pivot/CastSkillTip/AttackBtn";
|
| | | _model2.size = new Vector2(178, 178);
|
| | | _model2.direction = 0;
|
| | | _model2.pressedClose = false;
|
| | | _model2.clickClosed = false;
|
| | | _model2.onClose = null;
|
| | | WindowCenter.Instance.Open<NewGuideWin>();
|
| | | SnxxzGame.Instance.StartCoroutine(DelayCloseNewGuideWin(3f));
|
| | |
|
| | | Transform _temp = WindowCenter.Instance.uiRoot.baseCanvas.Find("MainInterfaceWin/TaskAndTeamTip/TaskListTip");
|
| | | _temp.gameObject.SetActive(false);
|
| | | _temp = WindowCenter.Instance.uiRoot.baseCanvas.Find("MainInterfaceWin/TaskSwithButton");
|
| | |
| | |
|
| | | m_SimpleTransfer.Init(-1, _pos, false, null, () =>
|
| | | {
|
| | | NewGuideModel _model2 = ModelCenter.Instance.GetModel<NewGuideModel>();
|
| | | _model2.showMask = false;
|
| | | _model2.content = "使用普通攻击\r\n破坏<color=#00ff00>栅栏</color>";
|
| | | _model2.componentPath = "BaseCanvas/MainInterfaceWin/SkillButtonTip/Pivot/CastSkillTip/AttackBtn";
|
| | | _model2.size = new Vector2(178, 178);
|
| | | _model2.direction = 0;
|
| | | _model2.pressedClose = false;
|
| | | _model2.clickClosed = true;
|
| | | _model2.onClose = null;
|
| | | WindowCenter.Instance.Open<NewGuideWin>();
|
| | |
|
| | | HeroBehaviour.onCastSkill += OnCastSkill;
|
| | |
|
| | | _pos = new Vector3(124.65f, 51.494f, 33.01f);
|
| | |
| | | GameObjectPoolManager.Instance.UnLoadNPC(1000);
|
| | | }
|
| | |
|
| | | private IEnumerator DelayCloseNewGuideWin(float time)
|
| | | {
|
| | | float _time = Time.realtimeSinceStartup;
|
| | | while (Time.realtimeSinceStartup - _time < time)
|
| | | {
|
| | | yield return null;
|
| | | }
|
| | | WindowCenter.Instance.Close<NewGuideWin>();
|
| | | }
|
| | |
|
| | | private void OnCastSkill(int skillID)
|
| | | {
|
| | | GA_Hero.OnUserClickSkill -= OnCastSkill;
|
| | |
|
| | | if (m_AfterAttackType == E_AfterAttackType.RefreshRock)
|
| | | {
|
| | | // 打开小提示窗口
|
| | | GuideMessageModel _model = ModelCenter.Instance.GetModel<GuideMessageModel>();
|
| | | _model.content = "清除前方<color=#00ff00>所有敌人</color>";
|
| | | _model.duration = -1;
|
| | |
|
| | | WindowCenter.Instance.Open<GuideMessageWin>();
|
| | |
|
| | | if (m_UIEffect)
|
| | | {
|
| | | EffectMgr.Instance.RecyleUIEffect(m_UIEffect.effect, m_UIEffect.gameObject);
|
| | | m_UIEffect = null;
|
| | | }
|
| | |
|
| | | Refresh_1001();
|
| | |
|
| | | // 显示头像区域
|
| | | Transform _temp = WindowCenter.Instance.uiRoot.baseCanvas.Find("MainInterfaceWin/HeadPortraitTip");
|
| | | _temp.localScale = Vector3.one;
|
| | |
|
| | | updateAI = true;
|
| | |
|
| | | m_AfterAttackType = E_AfterAttackType.None;
|
| | |
|
| | | return;
|
| | | }
|
| | |
|
| | | if (WindowCenter.Instance.CheckOpen<NewGuideWin>())
|
| | | {
|
| | | WindowCenter.Instance.Close<NewGuideWin>();
|