public void InitMainScene()
        {
            #region 生成MainScene
            mainScene = new Scene();

            #region GameObject处理
            //背景
            Model.Panel bg = new Model.Panel(48, 40);
            bg.Position = new Vector2(1, 1);

            //logo控制器
            LogoController lc = new LogoController();
            lc.DrawLogo();

            //ai蛇控制器
            AiSnackController ac = new AiSnackController();

            //星空背景控制器
            StarBgController sbc = new StarBgController();

            //按钮初始化
            ButtonController bc = ButtonController.Ins;
            bc.LoadMainSceneBtn();

            mainScene.AddObject(bg);
            mainScene.AddObject(lc);
            mainScene.AddObject(ac);
            mainScene.AddObject(sbc);
            #endregion


            #endregion
        }
        public void InitModeChoiceScene()
        {
            #region 生成ModeChoiceScene
            modeChoiceScene = new Scene();

            //背景
            Model.Panel bg = new Model.Panel(48, 40);
            bg.Position = new Vector2(1, 1);

            //星空背景控制器
            StarBgController sbc2 = new StarBgController();

            //选择游戏模式
            Model.Panel p2 = new Model.Panel(12, 5);
            p2.Position = new Vector2(18, 7);
            Text text1 = new Text();
            text1.TextValue = "选择游戏模式";
            text1.FColor    = ConsoleColor.Yellow;
            text1.Position  = new Vector2(21, 9);

            p2.Layer    = 3;
            text1.Layer = 4;

            modeChoiceScene.AddObject(bg);
            modeChoiceScene.AddObject(sbc2);
            modeChoiceScene.AddObject(p2);
            modeChoiceScene.AddObject(text1);

            //按钮初始化
            ButtonController bc = ButtonController.Ins;
            bc.LoadModeChoiceSceneBtn();
            #endregion
        }
        public void InitRankScene()
        {
            rankScene = new Scene();

            //背景
            Model.Panel bg = new Model.Panel(48, 40);
            bg.Position = new Vector2(1, 1);

            //按钮初始化
            ButtonController bc = ButtonController.Ins;

            bc.LoadrankSceneBtn();

            //星空背景控制器
            StarBgController sbc = new StarBgController();

            Model.Panel m1p = new Model.Panel(14, 27);
            m1p.Position = new Vector2(8, 5);
            m1p.Layer    = 10;
            m1p.mode     = 1;

            Model.Panel m2p = new Model.Panel(14, 27);
            m2p.Position = new Vector2(28, 5);
            m2p.Layer    = 10;
            m2p.mode     = 1;

            Text label1 = new Text();

            label1.Layer     = 11;
            label1.TextValue = "单人模式";
            label1.FColor    = ConsoleColor.Yellow;
            label1.Position  = new Vector2(13, 7);

            Text label2 = new Text();

            label2.Layer     = 11;
            label2.TextValue = "生存模式";
            label2.FColor    = ConsoleColor.Yellow;
            label2.Position  = new Vector2(33, 7);

            Text label3 = new Text();

            label3.Layer     = 11;
            label3.TextValue = "┉┉┉┉┉┉┉┉┉┉┉┉";
            label3.FColor    = ConsoleColor.Magenta;
            label3.Position  = new Vector2(9, 9);

            Text label4 = new Text();

            label4.Layer     = 11;
            label4.TextValue = "┉┉┉┉┉┉┉┉┉┉┉┉";
            label4.FColor    = ConsoleColor.Magenta;
            label4.Position  = new Vector2(29, 9);

            foreach (RankItem item in RankController.Ins.m1r.datas)
            {
                if (RankController.Ins.m1r.datas.IndexOf(item) == 7)
                {
                    break;
                }
                Text rank = new Text();
                rank.Layer     = 11;
                rank.TextValue = item.name + ":" + item.value;
                rank.FColor    = ConsoleColor.White;
                rank.Position  = new Vector2(11, 11 + RankController.Ins.m1r.datas.IndexOf(item) * 3);
                rankScene.AddObject(rank);
            }

            foreach (RankItem item in RankController.Ins.m3r.datas)
            {
                if (RankController.Ins.m3r.datas.IndexOf(item) == 7)
                {
                    break;
                }
                Text rank = new Text();
                rank.Layer     = 11;
                rank.TextValue = item.name + ":" + item.value;
                rank.FColor    = ConsoleColor.White;
                rank.Position  = new Vector2(31, 11 + RankController.Ins.m3r.datas.IndexOf(item) * 3);
                rankScene.AddObject(rank);
            }


            rankScene.AddObject(bg);
            rankScene.AddObject(sbc);
            rankScene.AddObject(m1p);
            rankScene.AddObject(m2p);
            rankScene.AddObject(label1);
            rankScene.AddObject(label2);
            rankScene.AddObject(label3);
            rankScene.AddObject(label4);
        }