예제 #1
0
    /// <summary> 开始游戏 </summary>
    private void OnClickStart()
    {
        StartLevelArgs e = new StartLevelArgs {
            LevelIndex = _selectIndex
        };

        SendEvent(Consts.E_StartLevel, e);
    }
예제 #2
0
    //选用关卡游戏
    public void ChooseLevel()
    {
        StartLevelArgs e = new StartLevelArgs()
        {
            LevelID = m_SelectedIndex
        };

        SendEvent(Consts.E_StartLevel, e);
    }
예제 #3
0
    public override void Execute(object data)
    {
        RoundModel rModel = GetModel <RoundModel>();

        StartLevelArgs e = data as StartLevelArgs;

        //进入游戏
        Game.Instance.LoadScene(3);
    }
예제 #4
0
파일: UILost.cs 프로젝트: fuchu/luobo
    public void OnRestartClick()
    {
        GameModel gm = GetModel <GameModel>();

        StartLevelArgs e = new StartLevelArgs();

        e.LevelIndex = gm.PlayLevelIndex;
        SendEvent(Consts.E_StartLevel, e);
    }
예제 #5
0
    //选用关卡游戏
    public void ChooseLevel()
    {
        StartLevelArgs e = new StartLevelArgs()
        {
            LevelIndex = m_SelectedIndex
        };

        SendEvent(Consts.E_StartLevel, e);
        Sound.Instance.PlayBg("level");
    }
예제 #6
0
    /// <summary>
    /// 选择关卡
    /// </summary>
    public void ChooseLevel()
    {
        StartLevelArgs e = new StartLevelArgs()
        {
            LevelID = 0
        };


        SendEvent(Constant.E_StartLevel, e);
    }
    public override void Execute(object data)
    {
        StartLevelArgs e = data as StartLevelArgs;

        //第一步
        GameModel gModel = GetModel <GameModel>();

        gModel.StartLevel(e.LevelIndex);
        gModel.Gold = 400;

        //进入游戏
        Game.Instance.LoadScene(3);
    }
예제 #8
0
    public override void Execute(object data)
    {
        StartLevelArgs e = data as StartLevelArgs;

        GameModel gameModel = GetModel <GameModel>();

        gameModel.StartLevel(e.LevelIndex);

        RoundModel roundModel = GetModel <RoundModel>();

        roundModel.LoadLevel(gameModel.PlayLevel);

        Game.Instance.LoadScene(3);
    }
예제 #9
0
    public override void Execute(object data)
    {
        StartLevelArgs e = data as StartLevelArgs;
        // 第一步
        GameModel gModel = GetModel <GameModel>();

        gModel.StartLevel(e.LevelIndex);
        // 第二步
        RoundModel rModel = GetModel <RoundModel>();

        rModel.LoadLevel(gModel.PlayLevel);

        // 进入游戏
        Game.Instance.LoadScene(3);
    }
예제 #10
0
    public override void Execute(object data)
    {
        StartLevelArgs e = data as StartLevelArgs;

        //第一步

        /*GameModel gModel = GetModel<GameModel>();
         * gModel.StartLevel(e.LevelIndex);*/

        //第二步
        RoundModel rModel = GetModel <RoundModel>();

        //rModel.LoadLevel(gModel.PlayLevel);
        rModel.CreateMonster();
    }
예제 #11
0
    public void OnContinueClick()
    {
        GameModel gm = GetModel <GameModel>();

        if (gm.PlayLevelIndex >= gm.LevelCount - 1)
        {
            Game.Instance.LoadScene(4);
        }
        else
        {
            StartLevelArgs e = new StartLevelArgs()
            {
                LevelIndex = gm.PlayLevelIndex + 1
            };
            SendEvent(Consts.E_StartLevel, e);
        }
    }
예제 #12
0
 void Map_OnTileClick(object sender, EventArgs e)
 {
     current_stage += 1;
     if (current_stage == 1)
     {
         textleft.gameObject.SetActive(false);
         textright.gameObject.SetActive(true);
         textright.text = "It's my honor to serve you and your son, Prince Liu.";
     }
     else if (current_stage == 2)
     {
         textright.text = "We should leave now, Chancelor Cao is coming.";
     }
     else if (current_stage == 3)
     {
         textright.gameObject.SetActive(false);
         textleft.gameObject.SetActive(true);
         textleft.text = "Yes, indeed.";
     }
     else if (current_stage == 4)
     {
         liubei.gameObject.SetActive(false);
         zhaoyun.gameObject.SetActive(false);
         zhangfei.gameObject.SetActive(true);
         textleft.text = "Let me cover you, brother";
     }
     else if (current_stage == 5)
     {
         textleft.gameObject.SetActive(false);
         caocao.gameObject.SetActive(true);
         textright.gameObject.SetActive(true);
         textright.text = "LMAO, today is a good day to die, Sir Liu";
     }
     else
     {
         StartLevelArgs ee = new StartLevelArgs()
         {
             LevelIndex = 0
         };
         SendEvent(Consts.E_StartLevel, ee);
     }
 }