mycj_demo/mycj/Assets/Game/Scripts/FB-Framework/FB-MVC/FBApplicationBase.cs
2024-12-02 09:37:47 +08:00

42 lines
1.1 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-BangFBApplicationBase
//   へ     /|
//  /7    ∠_/
//  / │    
//  Z _,    /`ヽ
// │     ヽ   /  〉
//  Y     `  /  /
// イ● 、 ●  ⊂⊃〈  /
// ()  へ    | \〈
//  >ー 、_  ィ  │
//  / へ   / ノ<|
//  ヽ_ノ  (_  │//
//  7       |
//  ―r ̄ ̄`ー―_
// DescribeMVC框架启动的入口
// Createtime2018/9/19
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace FBFramework
{
public abstract class FBApplicationBase<T>:FBSingleton<T>
where T : MonoBehaviour
{
protected void RegisterController(string eventName, Type controllerType)
{
FBMVC.RegisterController(eventName, controllerType);
}
protected void SendEvent(string eventName,object data=null)
{
FBMVC.SendEvent(eventName,data);
}
}
}