Hello,
I have a Parent group of Players(GroupA) with children (Players 1-3). When I make it spawn, the group appears together at the same time. Is it possible to give delay between each players in the group? Such that players will spawn one by one.
public GameObject[] objectPlayer;
public float interval;
IEnumerator Appear()
{
for (int j = 0; j < objectPlayer.Length; j++)
{
if (objectPlayer[j].tag == "GroupA")
{
yield return new WaitForSeconds(interval);
objectPlayer[j].SetActive(true);
}
}