Beispiel #1
0
        public void SetSelectState(HeroSelectState state)
        {
            selectState = state;
            switch (state)
            {
            case HeroSelectState.InitSelect: //初始化选择
                Init();                      //获取所有的英雄信息
                break;

            case HeroSelectState.EnterSelect:     //进入选择
                EnterSelectHero();                //清除临时选择的英雄列表,以及确定选择的英雄列表
                break;

            case HeroSelectState.RandomSelect:    //随机选择
                EnterRandomHero();                //随机选择
                break;

            case HeroSelectState.OutSelect:            //退出选择
                //Exit();
                Debug.LogError("HeroSelectState.OutSelect");
                break;
            }
        }
        public void SetSelectState(HeroSelectState state)
        {
            selectState = state;
            switch (state)
            {
            case HeroSelectState.InitSelect:
                Init();
                break;

            case HeroSelectState.EnterSelect:
                EnterSelectHero();
                break;

            case HeroSelectState.RandomSelect:
                EnterRandomHero();
                break;

            case HeroSelectState.OutSelect:
                //Exit();
                Debug.LogError("HeroSelectState.OutSelect");
                break;
            }
        }