public static int set_timeScale(IntPtr L) { if (LuaAPI.IsNumber(L, -1)) { double arg0 = LuaAPI.ToNumber(L, -1); UnityEngine.Time.timeScale = (float)arg0; } return(0); }
T4 PopFromLua() { if (typeof(T4) == typeof(int)) { return((T4)(object)(int)LuaAPI.ToNumber(LuaEnv.L, -1)); } else { return(default(T4)); } }
public static double ToNumber(IntPtr L, int i) { return(LuaAPI.ToNumber(L, i)); }
public static Type ToType(IntPtr L, int idx) { int index = (int)LuaAPI.ToNumber(L, idx); return((Type)ObjectTranslator.Instance.Get(index)); }