mycj_demo/mycj/Assets/Game/Scripts/Application/03Control/FBSceneEnterController.cs
2024-12-02 09:37:47 +08:00

66 lines
2.3 KiB
C#
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Felix-BangFBSceneEnterController
//   へ     /|
//  /7    ∠_/
//  / │    
//  Z _,    /`ヽ
// │     ヽ   /  〉
//  Y     `  /  /
// イ● 、 ●  ⊂⊃〈  /
// ()  へ    | \〈
//  >ー 、_  ィ  │
//  / へ   / ノ<|
//  ヽ_ノ  (_  │//
//  7       |
//  ―r ̄ ̄`ー―_
// Describe进入场景控制器
// Createtime2018/9/26
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using FBFramework;
namespace FBApplication
{
public class FBSceneEnterController : FBController
{
public override void Execute(object data = null)
{
FBSceneArgs e = data as FBSceneArgs;
//注册视图View
switch (e.Index)
{
case 0:
break;
case 1:
RegisterView(GameObject.Find("UIStart").GetComponent<FBUIStart>());
break;
case 2:
RegisterView(GameObject.Find("UISelect").GetComponent<FBUISelect>());
break;
case 3:
RegisterView(GameObject.Find("Map").transform.GetComponent<FBUISpawner>());
RegisterView(GameObject.Find("TowerPopup").transform.GetComponent<FBUITowerPopup>());
RegisterView(GameObject.Find("Canvas").transform.Find("UIBoard").GetComponent<FBUIBoard>());
RegisterView(GameObject.Find("Canvas").transform.Find("UICountDown").GetComponent<FBUICountDown>());
RegisterView(GameObject.Find("Canvas").transform.Find("UIWin").GetComponent<FBUIWin>());
RegisterView(GameObject.Find("Canvas").transform.Find("UILost").GetComponent<FBUILost>());
RegisterView(GameObject.Find("Canvas").transform.Find("UISystem").GetComponent<FBUISystem>());
break;
case 4:
RegisterView(GameObject.Find("UIComplete").GetComponent<FBUIComplete>());
break;
default:
break;
}
}
}
}