예제 #1
0
        private void BuildA()
        {
            /* EQUIPMENTS */
            var beaker = new Beaker(150);

            SimulationManager.instance.AddEquipmentItem(beaker);
            SimulationMixtureManager.instance.RegisterMixable(beaker);

            /* MATERIALS */
            var chalk = new Chalk();

            SimulationManager.instance.AddMaterial(chalk);

            var sand = new Sand();

            SimulationManager.instance.AddMaterial(sand);

            var water = new Water();

            SimulationManager.instance.AddMaterial(water);

            /* REGISTRATION */
            SimulationMixtureManager.instance.AddAllowableMixtureToMixable(beaker, water);
            SimulationMixtureManager.instance.AddAllowableMixtureToMixable(beaker, sand);
            SimulationMixtureManager.instance.AddAllowableMixtureToMixable(beaker, chalk);
            SimulationMixtureManager.instance.AddAllowableMixtureToMixable(beaker, beaker);
        }
예제 #2
0
        private void BuildB()
        {
            /* EQUIPMENTS */
            var beaker = new Beaker(150);

            SimulationManager.instance.AddEquipmentItem(beaker);
            SimulationMixtureManager.instance.RegisterMixable(beaker);

            var filter = new Filter();

            SimulationManager.instance.AddEquipmentItem(filter);

            var funnel = new Funnel();

            SimulationManager.instance.AddEquipmentItem(funnel);

            var funnelSupport = new FunnelSupport();

            SimulationManager.instance.AddEquipmentItem(funnelSupport);

            var stand = new IronStand();

            SimulationManager.instance.AddEquipmentItem(stand);

            /* MATERIALS */
            var nacl = new SodiumChloride();

            SimulationManager.instance.AddMaterial(nacl);

            var chalk = new Chalk();

            SimulationManager.instance.AddMaterial(chalk);

            var water = new Water();

            SimulationManager.instance.AddMaterial(water);
        }