how to make an game object inactive at a particular time

i have a start camera in which their is an option “tap to start” when taped on screen the game begins. i have a game object added to the scene for this start camera. I need to make the game object deactivate when the the screen is tapped.Can u please suggest a method to do it…i am a beginner in unity.

You can try to use this method:

public GameObject cameraHolder;

void Start(){
//Activate
cameraHolder.SetActive(true);

//Deactivate
cameraHolder.SetActive(false);

}

public class StartCameraBgScript : MonoBehaviour {
bool Test = true;
float Timer = 0.0f ;
// Use this for initialization
void Start () {

             }

               // Update is called once per frame
               void Update () {
 
                           /* in  this foreach method  when the screen is touched the game begins and the game object automatically gets in active */
 foreach (Touch touch in Input.touches) {
     if (touch.phase != TouchPhase.Ended && touch.phase != TouchPhase.Canceled)
     {
         gameObject.SetActive(false);
     }
 }
                     /* this method is given for testing in unity game player scince touch doesnot work (only mouse point),this is actually for testing purpose*/
 if (Test == true) {
     Timer += 1 * Time.deltaTime;
     if (Timer >= 5) 
     {
         coinMag = false;
         Timer = 0;
         gameObject.SetActive(false);
     }
 }
 
          }
          }