RandomActive.cs 258 B

12345678910111213141516
  1. using System;
  2. using UnityEngine;
  3. public class RandomActive : BaseBehaviour
  4. {
  5. private void Start()
  6. {
  7. this.objs[UnityEngine.Random.Range(0, this.objs.Length)].SetActive(true);
  8. }
  9. private void Update()
  10. {
  11. }
  12. public GameObject[] objs;
  13. }