You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
886 B
35 lines
886 B
4 years ago
|
using UniRx;
|
||
|
using UnityEngine;
|
||
|
using UnityEngine.SceneManagement;
|
||
|
|
||
|
|
||
|
public class GameMain : MonoBehaviour
|
||
|
{
|
||
|
XLogPresenter xLogPresenter;
|
||
|
private void Awake()
|
||
|
{
|
||
|
xLogPresenter = new XLogPresenter();
|
||
|
DontDestroyOnLoad(gameObject);
|
||
|
}
|
||
|
void Update()
|
||
|
{
|
||
|
// 注册UI快捷键
|
||
|
if (Input.GetKeyDown(KeyCode.Tab))
|
||
|
{
|
||
|
UIManager.GetView<XLogUIView>().SetPresenter(xLogPresenter);
|
||
|
UIManager.ShowView<XLogUIView>();
|
||
|
}
|
||
|
//int x = Random.Range(0, 10000);
|
||
|
//Debug.Log(" ");
|
||
|
//if (x==1)
|
||
|
//{
|
||
|
// int r = Random.Range(0, 1000);
|
||
|
// Debug.Log(r+"-------------------------------------------------------------------------------------------------");
|
||
|
// if (r==3)
|
||
|
// {
|
||
|
// Debug.Log("ZhJ");
|
||
|
// }
|
||
|
//}
|
||
|
}
|
||
|
}
|