29 lines
664 B
C#
29 lines
664 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
using UnityEngine.UI;
|
||
|
public class test111 : MonoBehaviour
|
||
|
{
|
||
|
// Start is called before the first frame update
|
||
|
public Canvas canvas1;
|
||
|
public Canvas canvas2;
|
||
|
public Camera camera1;
|
||
|
|
||
|
void Start()
|
||
|
{
|
||
|
canvas1.gameObject.SetActive(true);
|
||
|
canvas2.gameObject.SetActive(false);
|
||
|
camera1.gameObject.SetActive(true);
|
||
|
}
|
||
|
|
||
|
// Update is called once per frame
|
||
|
void Update()
|
||
|
{
|
||
|
if(ReadRoom.instance.isenter)
|
||
|
{
|
||
|
canvas1.gameObject.SetActive(false);
|
||
|
canvas2.gameObject.SetActive(true);
|
||
|
}
|
||
|
}
|
||
|
}
|