Exemplo n.º 1
0
        public override void OnPreLoad()
        {
            Tunings.Inject <Terrain, Terrain.GoHere.OtherLotDefinition, OtherLotDefinition>(false);
            Tunings.Inject <Terrain, Terrain.GoHere.OtherLotWithCarriedChildDefinition, OtherLotWithCarriedChildDefinition>(false);
            Tunings.Inject <Terrain, Terrain.GoHere.SameLotDefinition, SameLotDefinition>(false);

            sOldOtherLotSingleton = OtherLotSingleton;
            OtherLotSingleton     = new OtherLotDefinition();

            sOldOtherLotWithCarriedChildSingleton = OtherLotWithCarriedChildSingleton;
            OtherLotWithCarriedChildSingleton     = new OtherLotWithCarriedChildDefinition();

            sOldSameLotSingleton = SameLotSingleton;
            SameLotSingleton     = new SameLotDefinition();
        }
Exemplo n.º 2
0
        public override void OnPreLoad()
        {
            Tunings.Inject<Terrain, Terrain.GoHere.OtherLotDefinition, OtherLotDefinition>(false);
            Tunings.Inject<Terrain, Terrain.GoHere.OtherLotWithCarriedChildDefinition, OtherLotWithCarriedChildDefinition>(false);
            Tunings.Inject<Terrain, Terrain.GoHere.SameLotDefinition, SameLotDefinition>(false);

            sOldOtherLotSingleton = OtherLotSingleton;
            OtherLotSingleton = new OtherLotDefinition();

            sOldOtherLotWithCarriedChildSingleton = OtherLotWithCarriedChildSingleton;
            OtherLotWithCarriedChildSingleton = new OtherLotWithCarriedChildDefinition();

            sOldSameLotSingleton = SameLotSingleton;
            SameLotSingleton = new SameLotDefinition();
        }