Hi. I made two kind of minions, each with different features modeled upon one character and uvmapped into one uvmap with one texture. For example, one haves the mask, the other a cap, ans so on. How can I spawn “casually” on a level a given number of minions variants per each kind?
Dont understand what you are trying to do fully but this should work-
//Minion variants
public GameObject minion1;
public GameObject minion2;
//amounts
public int minion1Amt
public int minion2Amt
private void Spawn()
{
for(int i=0; i < minion1Amt+1; i++)
{
Instantiate(minion1, [position you want to spawn them at])
}
for(int i=0; i < minion2Amt+1; i++)
{
Instantiate(minion2, [position you want to spawn them at])
}
}