hello.
I have these 3d objects on my screen. I want to select any of this object and disable it with button. I am stuck. Please help me. This is the script so far i write. Thank you
using UnityEngine;
using System.Collections;
public class disableEnable : MonoBehaviour {
public GameObject Enable_Disable;
public void Enable()
{
Enable_Disable.SetActive(true);
}
public void Disable()
{
Enable_Disable.SetActive(false);
}
}