1_unity中使用lua标准化过程

来源:互联网 发布:信息系统数据备份方案 编辑:程序博客网 时间:2024/05/21 10:50
--PlayerController.lualocal function start()    print("hello start")endlocal function fixedUpdate()    print("hello fixedUpdate")endlocal function update()    print("hello update")endlocal function lateUpdate()    print("hello lateUpdate")endlocal function onDestrory()    print("hello onDestrory")endPlayerController = {}PlayerController.gameObject = nilPlayerController.Start = startPlayerController.Update = updatePlayerController.FixedUpdate = fixedUpdatePlayerController.LateUpdate = lateUpdatePlayerController.OnDestrory = onDestrory
原创粉丝点击