48 lines
1.3 KiB
C#
48 lines
1.3 KiB
C#
|
// Felix-Bang:FBLevelEndController
|
|||
|
// へ /|
|
|||
|
// /\7 ∠_/
|
|||
|
// / │ / /
|
|||
|
// │ Z _,< / /`ヽ
|
|||
|
// │ ヽ / 〉
|
|||
|
// Y ` / /
|
|||
|
// イ● 、 ● ⊂⊃〈 /
|
|||
|
// () へ | \〈
|
|||
|
// >ー 、_ ィ │ //
|
|||
|
// / へ / ノ<| \\
|
|||
|
// ヽ_ノ (_/ │//
|
|||
|
// 7 |/
|
|||
|
// >―r ̄ ̄`ー―_
|
|||
|
// Describe:开始关卡控制器
|
|||
|
// Createtime:
|
|||
|
|
|||
|
|
|||
|
using FBFramework;
|
|||
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
namespace FBApplication
|
|||
|
{
|
|||
|
public class FBLevelEndController : FBController
|
|||
|
{
|
|||
|
public override void Execute(object data = null)
|
|||
|
{
|
|||
|
FBEndLevelArgs e = data as FBEndLevelArgs;
|
|||
|
|
|||
|
//保存游戏状态
|
|||
|
FBGameModel gameModel = GetModel<FBGameModel>();
|
|||
|
FBRoundModel roundModel = GetModel<FBRoundModel>();
|
|||
|
|
|||
|
roundModel.StopRound();
|
|||
|
gameModel.StoptLevel(e.IsWin);
|
|||
|
|
|||
|
//弹出UI
|
|||
|
if (e.IsWin)
|
|||
|
GetView<FBUIWin>().Show();
|
|||
|
else
|
|||
|
GetView<FBUILost>().Show();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|