25 lines
401 B
C#
25 lines
401 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
[RequireComponent(typeof(BoxCollider))]
|
|
public class CameraPreview : MonoBehaviour {
|
|
|
|
// Use this for initialization
|
|
void Start () {
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update () {
|
|
if(Input.GetMouseButtonUp(0))
|
|
{
|
|
OnMouseUp();
|
|
}
|
|
}
|
|
|
|
void OnMouseUp()
|
|
{
|
|
gameObject.SetActive(false);
|
|
}
|
|
}
|