Esempio 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();
        }
Esempio 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();
        }