Пример #1
0
        protected override void AddInstallers(List <TypeValuePair> args, GameObjectContext context)
        {
            context.AddNormalInstaller(
                new ActionInstaller(subContainer =>
            {
                var extraArgs = ZenPools.SpawnList <TypeValuePair>();

                extraArgs.AllocFreeAddRange(_extraArgs);
                extraArgs.AllocFreeAddRange(args);

                var installer = (InstallerBase)subContainer.InstantiateExplicit(
                    _installerType, extraArgs);

                ZenPools.DespawnList(extraArgs);

                installer.InstallBindings();
            }));
        }
Пример #2
0
 protected override void AddInstallers(List <TypeValuePair> args, GameObjectContext context)
 {
     Assert.That(args.IsEmpty());
     context.AddNormalInstaller(
         new ActionInstaller(_installerMethod));
 }