42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
// Felix-Bang:FBApplicationBase
|
||
// へ /|
|
||
// /\7 ∠_/
|
||
// / │ / /
|
||
// │ Z _,< / /`ヽ
|
||
// │ ヽ / 〉
|
||
// Y ` / /
|
||
// イ● 、 ● ⊂⊃〈 /
|
||
// () へ | \〈
|
||
// >ー 、_ ィ │ //
|
||
// / へ / ノ<| \\
|
||
// ヽ_ノ (_/ │//
|
||
// 7 |/
|
||
// >―r ̄ ̄`ー―_
|
||
// Describe:MVC框架启动的入口
|
||
// Createtime:2018/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);
|
||
}
|
||
}
|
||
}
|
||
|