using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class YangShiItem : MonoBehaviour
{
    public GameObject video;
    public GameObject img;
    public GameObject model;

    public GameObject useObj;
    public GameObject showvideo()
    {
        useObj = video;
        video.gameObject.SetActive(true);
        img.gameObject.SetActive(false);
        model.gameObject.SetActive(false);
        return video;
    }
    public GameObject showimg()
    {
        useObj = img;
        video.gameObject.SetActive(false);
        img.gameObject.SetActive(true);
        model.gameObject.SetActive(false);
        return img;
    }
    public GameObject showmodel()
    {
        useObj = model;

        video.gameObject.SetActive(false);
        img.gameObject.SetActive(false);
        model.gameObject.SetActive(true);
        return model;
    }

    public void Close()
    {
        useObj = null;
        video.gameObject.SetActive(false);
        img.gameObject.SetActive(false);
        model.gameObject.SetActive(false);
    }
}