Hello I make a game where you can collect stuffed animals and I make a machine that when you lower a handle it makes a randomly spawn a stuffed animal in the whole collection and my problem is to make just one stuffed animal appear in the collection. Do you have tutorials (video/written) or anything else to help me thank you in advance.
Definitely start with some tutorials otherwise you’re just wasting your own time.
As almost any tutorial anywhere shows you, you can make a thing to spawn:
public GameObject WhatToSpawn;
You can also make an array:
public GameObject[] ABunchOfThingsYouCouldSpawn;
Then to pick it you can use Random.Range():
var toSpawn = ABunchOfThingsYouCouldSpawn[
Random.Range( 0, ABunchOfThingsYouCouldSpawn.Length)];
and off you go