Introduction The central component of any game, from a programming standpoint, is the game loop. It allows the game to run smoothly regardless of a user's input or lack thereof. Every game must and should have a game loop because a game must continue…
LuaComponent可以支持配一个需要执行在这个gameObject上的lua脚本,并且每个gameObject上的lua都是一个实例 using UnityEngine; using LuaInterface; using System.Collections.Generic; //Lua组件 public class LuaComponent : MonoBehaviour { //lua环境,需要在使用前给其赋值 public static LuaState s_luaState; /…