| 4 | namespace 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected