2021-11-16 09:55:09 -05:00

27 lines
568 B
C#

using UnityEngine;
using Random = System.Random;
namespace Assets.Scripts
{
public class RandomDemonSpawn : MonoBehaviour
{
public GameObject[] listeCommeTuVeux;
// Start is called before the first frame update
void Start()
{
Random rnd = new Random();
int card = rnd.Next(1, 3);
listeCommeTuVeux[0].SetActive(card == 1);
listeCommeTuVeux[1].SetActive(card != 1);
}
// Update is called once per frame
void Update()
{
}
}
}