using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
using Snxxz.UI;
|
|
[XLua.Hotfix]
|
public class TestMonobehaviour : MonoBehaviour
|
{
|
|
// Use this for initialization
|
void Start()
|
{
|
CSharpCallLua.Init();
|
}
|
|
// Update is called once per frame
|
void Update()
|
{
|
if (Input.GetKeyDown(KeyCode.F))
|
{
|
WindowCenter.Instance.Open("AbyssWin");
|
}
|
|
if (Input.GetKeyDown(KeyCode.G))
|
{
|
WindowCenter.Instance.Open("TestWin");
|
}
|
}
|
|
private void OnEnable()
|
{
|
Debug.Log("this is C# OnEnable !");
|
}
|
|
private void OnDisable()
|
{
|
Debug.Log("this is C# OnDisable !");
|
}
|
|
private void LateUpdate()
|
{
|
Debug.Log("this is C# LateUpdate !");
|
}
|
|
void OnGUI()
|
{
|
if (GUI.Button(new Rect(10, 10, 300, 80), "Hotfix"))
|
{
|
LuaUtility.DoString("hotfix.hotfix");
|
}
|
}
|
}
|