public override void Init(IComponentContainer c) { base.Init(c); var kernel = Container.Instance.Get <IKernel>(); kernel.Configure(new InlineModule( b => b.Bind <IAvatarLoader, AvatarLoader>().InSingletonScope())); var loader = kernel.Get <IAvatarLoader>(); var mask = "Images/avatar_holder.png"; loader.Init(1024, 1024, 100, 100, 5, mask); var cs = kernel.Get <CompactSerializer>(); new CoreMessages(cs); new BaseMessages(cs); //c.Flow("start", "settings"); c.Flow("start", "lobby"); //c.Flow("splash-completed", "home"); //c.Flow("show-menu", "login"); //c.Flow("show-login", "login"); //c.Register<SpashScene>("splash", true); //c.Register<HomeScene>("home", true); //c.Register<LeftMenu>("left", true); //c.Register<LoginScene>("login", true); //c.Register<SettingsScene>("settings", true); c.Register <LobbyScene>("lobby", true); }