mycj_demo/mycj/Assets/Game/Scripts/Application/03Control/FBLevelStartController.cs

47 lines
1.2 KiB
C#
Raw Normal View History

2024-12-02 09:37:47 +08:00
// Felix-BangFBLevelStartController
//   へ     /|
//  /7    ∠_/
//  / │    
//  Z _,    /`ヽ
// │     ヽ   /  〉
//  Y     `  /  /
// イ● 、 ●  ⊂⊃〈  /
// ()  へ    | \〈
//  >ー 、_  ィ  │
//  / へ   / ノ<|
//  ヽ_ノ  (_  │//
//  7       |
//  ―r ̄ ̄`ー―_
// Describe开始关卡控制器
// Createtime2018/9/19
using FBFramework;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace FBApplication
{
public class FBLevelStartController : FBController
{
public override void Execute(object data = null)
{
FBStartLevelArgs e = data as FBStartLevelArgs;
//第一步
FBGameModel gameModel = GetModel<FBGameModel>();
gameModel.StartLevel(e.ID);
//第二步
FBRoundModel roundModel = GetModel<FBRoundModel>();
roundModel.LoadLevel(gameModel.PlayLevel);
// 进入游戏
FBGame.Instance.LoadScene(3);
}
}
}