50 lines
1.3 KiB
C#
50 lines
1.3 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
public class test111 : MonoBehaviour
|
|
{
|
|
public static test111 instance;
|
|
// Start is called before the first frame update
|
|
public Canvas canvas1;
|
|
public Camera camera;
|
|
public Canvas canvas2;
|
|
public Camera camera1;
|
|
|
|
void Start()
|
|
{
|
|
instance = this;
|
|
|
|
|
|
canvas1.gameObject.SetActive(false);
|
|
camera.gameObject.SetActive(false);
|
|
canvas2.gameObject.SetActive(true);
|
|
camera1.gameObject.SetActive(true);
|
|
|
|
}
|
|
public void Oppanel()
|
|
{
|
|
Debug.LogError("·¿¼ä¿ªÊ¼ÓÎÏ·");
|
|
if (ReadRoom.instance.isenter)
|
|
{
|
|
Debug.Log(ReadRoom.instance.isenter);
|
|
canvas1.gameObject.SetActive(false);
|
|
camera.gameObject.SetActive(false);
|
|
canvas2.gameObject.SetActive(false);
|
|
camera1.gameObject.SetActive(true);
|
|
}
|
|
else
|
|
{
|
|
canvas1.gameObject.SetActive(false);
|
|
camera.gameObject.SetActive(true);
|
|
canvas2.gameObject.SetActive(false);
|
|
camera1.gameObject.SetActive(false);
|
|
}
|
|
}
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|