// 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)); } }
public void AddEquips() { EquipmentsFactory factory = new EquipmentsFactory(); foreach (var v in spawns) { Equips.Add(factory.SpawnProduct(v.equipType, v.value)); } return; }
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; }