void Update() { if (Input.GetMouseButtonDown(0)) { gameObject.active = true; } if (Input.GetMouseButtonDown(1)) { gameObject.active = false; } }