MCPcopy Create free account
hub / github.com/Tencent/xLua / CoroutineTest

Class CoroutineTest

Assets/XLua/Examples/06_Coroutine/CoroutineTest.cs:6–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4namespace XLuaTest
5{
6 public class CoroutineTest : MonoBehaviour
7 {
8 LuaEnv luaenv = null;
9 // Use this for initialization
10 void Start()
11 {
12 luaenv = new LuaEnv();
13 luaenv.DoString("require 'coruntine_test'");
14 }
15
16 // Update is called once per frame
17 void Update()
18 {
19 if (luaenv != null)
20 {
21 luaenv.Tick();
22 }
23 }
24
25 void OnDestroy()
26 {
27 luaenv.Dispose();
28 }
29 }
30}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected