mirror of
https://github.com/ConjureETS/MTI860_VR_Multi_Controller.git
synced 2026-03-24 04:21:15 +00:00
27 lines
568 B
C#
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()
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|