예제 #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));
        }
    }
예제 #2
0
    public void AddEquips()
    {
        EquipmentsFactory factory = new EquipmentsFactory();

        foreach (var v in spawns)
        {
            Equips.Add(factory.SpawnProduct(v.equipType, v.value));
        }
        return;
    }
예제 #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;
    }