Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public GameObject[] items;
- // Start is called before the first frame update
- void Start()
- {
- items[0].SetActive(false);
- items[1].SetActive(false);
- items[2].SetActive(false);
- items[3].SetActive(false);
- for (int i=0;i<items.Length;i++)
- {
- Debug.Log(items[i].name);
- if (items[i].name== "kids_wooden_desk")
- {
- items[i].SetActive(true);
- }
- Debug.Log(items[i].activeSelf);
- }
- //g.SetActive(true);
- }
- private void OnDestroy()
- {
- }
- // Update is called once per frame
- void Update()
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement