Пример #1
0
        protected override void Startup()
        {
            //FSM
            Injector.MapSingletonOf <IFsm, Fsm>();

            //MODEL
            Injector.MapSingletonOf <IMenuModel, MenuModel>();
            Injector.MapSingletonOf <IPlayerPrefsManager, PlayerPrefsManager>();

            //VIEW
            Injector.MapSingletonOf <IAssetManager, AssetManager>();
            Injector.MapSingletonOf <IUIManager, UIManager>();
            Injector.MapSingletonOf <IPopUpManager, PopUpManager>();

            //COMMANDS
            CommandMap.MapCommand <FramewerkStartEvent, FramewerkStartCommand>();
            CommandMap.MapCommand <MenuItemSelectedEvent, MenuItemSelectedCommand>();
            CommandMap.MapCommand <ShowMenuEvent, ShowMenuCommand>();

            base.Startup();
        }