コード例 #1
0
        protected override void AddInstallers(List <TypeValuePair> args, GameObjectContext context)
        {
            context.AddNormalInstaller(
                new ActionInstaller(subContainer =>
            {
                var extraArgs = UniDiPools.SpawnList <TypeValuePair>();

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

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

                UniDiPools.DespawnList(extraArgs);

                installer.InstallBindings();
            }));
        }
コード例 #2
0
 protected override void AddInstallers(List <TypeValuePair> args, GameObjectContext context)
 {
     Assert.That(args.IsEmpty());
     context.AddNormalInstaller(
         new ActionInstaller(_installerMethod));
 }