Example #1
0
    // Start is called before the first frame update
    void Start()
    {
        EquipmentsFactory factory = new EquipmentsFactory();

        foreach (var v in spawns)
        {
            Equips.Add(factory.SpawnProduct(v.equipType, v.value));
        }
    }
Example #2
0
    public void AddEquips()
    {
        EquipmentsFactory factory = new EquipmentsFactory();

        foreach (var v in spawns)
        {
            Equips.Add(factory.SpawnProduct(v.equipType, v.value));
        }
        return;
    }
Example #3
0
    public new void AddEquips()
    {
        EquipmentsFactory factory = new EquipmentsFactory();

        foreach (var v in spawns)
        {
            Equips.Add(factory.SpawnProduct(v.equipType, v.value));
        }

        baseE.AddEquips();
        foreach (var v in baseE.spawns)
        {
            Equips.AddRange(baseE.Equips);
        }
        return;
    }