Пример #1
0
 public override void Update()
 {
     if (Input.GetKey(KeyCode.Escape))
     {
         m_FsmController.SetState(m_FsmController.BattleState);
     }
 }
Пример #2
0
        public override void Update()
        {
            if (Input.GetKeyDown(KeyCode.Tab))
            {
                m_FsmController.SetState(m_FsmController.DetailState);
            }
            else if (Input.GetKey(KeyCode.Escape))
            {
                m_FsmController.SetState(m_FsmController.SetupState);
            }

            hp.text        = hpStr + m_FsmController.Hero.Attri.Hp;
            bulletNum.text = bulletNumStr + m_FsmController.Hero.Attri.BulletNum;
        }
Пример #3
0
        public override void Update()
        {
            if (Input.GetKeyUp(KeyCode.Tab))
            {
                panelDetail.transform.Translate(Vector3.up * 2000);

                m_FsmController.SetState(m_FsmController.BattleState);
            }

            //展示积分面板
            kills.text = "击杀数:" + NpcManager.Instance.Kills;
        }
Пример #4
0
        void OnBtnAckClick()
        {
            if (m_EnumHero != EnumHero.Length)
            {
                GameObject hero = Factory.Instance.CreatHero(m_EnumHero);

                GameObject.Find("Main Camera").AddComponent <CameraCtrl>().Player = hero;

                m_FsmController.Hero = HeroManager.Instance.FindHero(hero.GetInstanceID());

                CharacterManager.Instance.Start();

                m_FsmController.SetState(m_FsmController.BattleState);
            }
        }