Hello ! i have the error CS1061: Type int' does not contain a definition for
Add’ and no extension method Add' of type
int’ could be found. Are you missing an assembly reference? in my script !
i Know its here but i cant find the problem !
public int slotAmount = 47;
public GameObject slotPrefab;
public GameObject slotParent;
public List<GameObject> slots = new List<GameObject>();
private void CreateSlots(int slots) {
for (int i = 0; i < slots; i++) {
slots.Add(Instantiate(slotPrefab));
slots*.transform.SetParent (slotParent.transform);*
-
}*
- }*
thanks you for helping me !