private void Step_Move() { GameObject gameObject = Res.Load<GameObject>("Skill/com/st_059", false); if (gameObject == null) { global::Debug.LogError(new object[] { "Res.Load error, name = Skill/com/st_059" }); return; } this.singleSkillBtn = GameUITools.FindGameObject("right-bottom/skill1", this.combatMain.gameObject).GetComponent<CombatMainSkillButton>(); this.aoeSkillBtn = GameUITools.FindGameObject("right-bottom/skill2", this.combatMain.gameObject).GetComponent<CombatMainSkillButton>(); if (this.player.ActorCtrler.Skills[this.singleSkillBtn.SkillIndex] == null) { this.singleSkillBtn = null; } if (this.player.ActorCtrler.Skills[this.aoeSkillBtn.SkillIndex] == null) { this.aoeSkillBtn = null; } if (this.singleSkillBtn == null) { global::Debug.LogError(new object[] { "skill is null" }); return; } this.singleSkillBtn.TutorialUsing = true; if (this.aoeSkillBtn != null) { this.aoeSkillBtn.TutorialUsing = true; } this.moveTarget = (UnityEngine.Object.Instantiate(gameObject, this.targetPos, Quaternion.identity) as GameObject); base.CreateGuideMask(); base.ResetGuideMask(); GameUITools.AddChild(GameUIManager.mInstance.uiCamera.gameObject, this.guideMask); base.SetHandDirection(TutorialEntity.ETutorialHandDirection.ETHD_RightDown); this.guideMask.SetActive(true); if (this.player.ControlType == PlayerController.EControlType.ETouch) { this.tips.text = Singleton<StringManager>.Instance.GetString("tutorialMove3"); } else { this.tips.text = Singleton<StringManager>.Instance.GetString("tutorialMove2"); } GameObject gameObject2 = GameUITools.FindGameObject("q", this.ui38); gameObject2.SetActive(false); this.area.gameObject.SetActive(false); UIPanel uIPanel = this.guideMask.gameObject.GetComponent<UIPanel>(); if (uIPanel == null) { uIPanel = this.guideMask.gameObject.AddComponent<UIPanel>(); } uIPanel.depth = 100; uIPanel.renderQueue = UIPanel.RenderQueue.StartAt; uIPanel.startingRenderQueue = 4000; Vector3 position = Camera.main.WorldToViewportPoint(this.targetPos); position = GameUIManager.mInstance.uiCamera.camera.ViewportToWorldPoint(position); position.z = 0f; this.guideMask.transform.position = position; this.moveTarget.SetActive(true); this.fadeBG.gameObject.SetActive(false); TweenPosition component = this.hand.GetComponent<TweenPosition>(); component.enabled = true; this.guideAnimation.SetActive(true); this.tips.gameObject.SetActive(true); base.PlaySound("tutorial_016"); }
private void Step_02() { if (Globals.Instance.TutorialMgr.CurrentScene != null) { if (Globals.Instance.TutorialMgr.CurrentScene is GUIGameResultFailureScene) { this.InitParms(); base.ResetFadeBGArea(); base.Step_FailureOKBtn(); return; } if (Globals.Instance.TutorialMgr.CurrentScene is GUIMainMenuScene) { this.InitParms(); base.Step_PVEBtn(); return; } if (Globals.Instance.TutorialMgr.CurrentScene is GUIWorldMap) { this.InitParms(); base.ResetFadeBGArea(); base.Step_SceneBtn(2, "tutorial43"); base.PlaySound("tutorial_021"); return; } if (Globals.Instance.TutorialMgr.CurrentScene is GameUIAdventureReady) { this.InitParms(); base.Step_StartSceneBtn("tutorial44"); base.PlaySound("tutorial_022"); return; } } if (Globals.Instance.TutorialMgr.CurrentScene is GUIGameResultVictoryScene) { TutorialEntity.SetNextTutorialStep(3, TutorialManager.ETutorialNum.Tutorial_Null, false, true, false); return; } if (this.hasCastAOESkill) { TutorialEntity.SetNextTutorialStep(3, TutorialManager.ETutorialNum.Tutorial_Null, false, false, false); return; } if (Globals.Instance.TutorialMgr.CurrentScene is GUICombatMain) { this.combatMain = TutorialEntity.ConvertObject2UnityOrPrefab<GUICombatMain>(); if (this.combatMain == null) { return; } this.player = Globals.Instance.ActorMgr.PlayerCtrler; this.singleSkillBtn = GameUITools.FindGameObject("right-bottom/skill1", this.combatMain.gameObject).GetComponent<CombatMainSkillButton>(); this.aoeSkillBtn = GameUITools.FindGameObject("right-bottom/skill2", this.combatMain.gameObject).GetComponent<CombatMainSkillButton>(); if (Globals.Instance.ActorMgr.CurScene is WorldScene) { this.mWorldScene = (WorldScene)Globals.Instance.ActorMgr.CurScene; } if (this.aoeSkillBtn == null) { global::Debug.LogError(new object[] { "skill is null" }); return; } this.status = 3; } }