LEVELS
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class PatternSelecter : MonoBehaviour
|
||||
{
|
||||
void Start()
|
||||
{
|
||||
foreach (Transform child in transform)
|
||||
child.gameObject.SetActive(false);
|
||||
|
||||
int randomIndex = Random.Range(0, transform.childCount);
|
||||
|
||||
transform.GetChild(randomIndex).gameObject.SetActive(true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user