Advertisement
kadyr

Untitled

Aug 7th, 2021
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class PlateScript : MonoBehaviour
  6. {
  7. private List<GameObject> plates = new List<GameObject>();
  8. void Start()
  9. {
  10. plates[Random.Range(0, 2)].GetComponent<BoxCollider>().enabled = false;
  11. plates[Random.Range(3, 5)].GetComponent<BoxCollider>().enabled = false;
  12. plates[Random.Range(6, 8)].GetComponent<BoxCollider>().enabled = false;
  13. }
  14.  
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement