画像ファイルダウンロード:https://drive.google.com/open?id=1ClAAZd-A6YYW1OAAdXDQ-el_k0AmrZgk
ソースコード
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : MonoBehaviour
{
// 各パネルを取得
public GameObject lightStandPanel;
public GameObject drawerPanel;
public GameObject pcPanel;
// ボタンを押したら該当するパネルを表示
public void OnClickLightStandTrigger()
{
lightStandPanel.SetActive(true);
}
public void OnClickDrawerTrigger()
{
drawerPanel.SetActive(true);
}
public void OnClickPCTrigger()
{
pcPanel.SetActive(true);
}
}