56 lines
1.1 KiB
C#
56 lines
1.1 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Enter181Page : MonoBehaviour
|
|
{
|
|
public GameObject mainPage;
|
|
public GameObject loadPage;
|
|
bool isLoad;
|
|
private void Start()
|
|
{
|
|
isLoad = false;
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
if (!isLoad)
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.Return))
|
|
{
|
|
loadPage.SetActive(false);
|
|
isLoad = true;
|
|
|
|
}
|
|
return;
|
|
}
|
|
if (Input.GetKeyDown(KeyCode.F1))
|
|
{
|
|
if (!mainPage.activeInHierarchy)
|
|
mainPage.SetActive(true);
|
|
//gameObject.SetActive(false);
|
|
}
|
|
|
|
}
|
|
|
|
public void HideLoadPage()
|
|
{
|
|
if (!isLoad)
|
|
{
|
|
loadPage.SetActive(false);
|
|
isLoad = true;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void OnShow()
|
|
{
|
|
if(!gameObject.activeInHierarchy)
|
|
gameObject.SetActive(true);
|
|
if (!mainPage.activeInHierarchy)
|
|
mainPage.SetActive(true);
|
|
}
|
|
}
|