30 lines
621 B
C#
30 lines
621 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Enter181Page : MonoBehaviour
|
|
{
|
|
public GameObject mainPage;
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.F3))
|
|
{
|
|
if (!mainPage.activeInHierarchy)
|
|
mainPage.SetActive(true);
|
|
//gameObject.SetActive(false);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void OnShow()
|
|
{
|
|
if(!gameObject.activeInHierarchy)
|
|
gameObject.SetActive(true);
|
|
if (!mainPage.activeInHierarchy)
|
|
mainPage.SetActive(true);
|
|
}
|
|
}
|