123456789101112131415161718192021222324252627282930313233343536 |
- using System.Collections;
- using PureMVC.Patterns.Facade;
- using PureMVC.Interfaces;
- using James.Base;
- using James.Command;
- namespace JamesCore
- {
- /// <summary>
- /// Global Entry Logically.
- /// </summary>
- public class UnityFacade : Facade
- {
- //实例化函数,保证单例模式(Singleton)运行该函数
- public static IFacade Instance
- {
- get
- {
- return Singleton<UnityFacade>.Instance;
- }
- }
- private UnityFacade() { }
- public void Initialize()
- {
- Core.Initialize();
- RegisterCommand(EventsEnum.STARTUP, () => new StartupCommand());
- }
- }
- }
|