Example #1
0
    void Start()
    {
        var unitsFactory = new UnitsFactory();

        unitsFactory.AddFactory(new MagFactory());
        unitsFactory.AddFactory(new InfantryFactory());
        List <IUnit> units2 = unitsFactory.ParseFile("file.json");
    }