少年修仙传客户端基础资源
client_Wu Xijin
2018-11-05 1cee93d63f19fd4e961b47f23cfa7621833e7d7f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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");
        }
    }
}