#Array copying

1 messages · Page 1 of 1 (latest)

slate ether
#

Structs of my arrays:

#
{
    None,
    Sword,
    Spell,
    Metall,
    Gold
}

[System.Serializable]
public class Recepie
{
    public TypeAmountCombination[] needs;
    public Item result;
}

[System.Serializable]
public struct TypeAmountCombination
{
    public ItemType type;
    public int amount;
}```
#

I have one Recepie array and one TypeAmoundCombination Array and need to copy them instead of getting a reference