Exemple #1
0
        public override void Enter()
        {
            base.Enter();
            m_Character = GTWorld.Main;
            GameObject go = GameObject.CreatePrimitive(PrimitiveType.Cube);

            go.GetComponent <Collider>().isTrigger = true;
            m_TargetTriggerObject = go.AddComponent <ETriggerObject>();
            m_TargetTriggerObject.transform.localScale    = TargetScale;
            m_TargetTriggerObject.transform.localPosition = TargetPos;
            m_TargetTriggerObject.GetComponent <MeshRenderer>().enabled = false;
            m_TargetTriggerObject.onTriggerEnter = OnTriggerEnter;
            m_TargetArrow = GTResourceManager.Instance.Load <GameObject>("Effect/other_xinshou_yidong", true);
            m_TargetArrow.transform.localPosition = TargetPos;
            for (int i = 0; i < 20; i++)
            {
                GameObject g = GTResourceManager.Instance.Load <GameObject>("Effect/jiantourow", true);
                m_ArrowGameObjectList.Add(g);
            }

            UIGuide guideWindow = (UIGuide)GTWindowManager.Instance.OpenWindow(EWindowID.UIGuide);

            guideWindow.ShowGuideBase(this);
            guideWindow.ShowGuideTip(TipText, TipPosition, TipGirlPos);
            GTAudioManager.Instance.PlayEffectAudio(TipSound);
        }
Exemple #2
0
        public override void Enter()
        {
            base.Enter();
            this.Audio = GTAudioManager.Instance.PlaySound(TipSound);
            UIGuide guideWindow = (UIGuide)GTWindowManager.Instance.OpenWindow(EWindowID.UIGuide);

            guideWindow.ShowGuideBase(this);
            guideWindow.ShowGuideTip(TipText, TipPosition, TipGirlPos);
            guideWindow.ShowGuideOperation(Container.GetData(LockKey), this);
        }