Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class LevelController : MonoBehaviour
- {
- [SerializeField] List<GameObject> plates = new List<GameObject>();
- //Список плит
- void Start()
- {
- plates[Random.Range(0, 3)].GetComponent<Collider>().enabled = false;
- plates[Random.Range(3, 6)].GetComponent<Collider>().enabled = false;
- plates[Random.Range(6, 9)].GetComponent<Collider>().enabled = false;
- //выключить случайно плиту с индексом от 0 до 2
- //ЗДЕСЬ нужно дописать выключение плит второго и третьего ряда.
- }
- // Update is called once per frame
- void Update()
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement