void Awake() { _grid = GetComponent <UnityEngine.Grid>(); _tilemapLayers = GetComponentsInChildren <Tilemap>(); ComputeBoundsFromLayers(); _centerOffsetFromTransform = _mapBounds.center - transform.position; }
static int set_cellLayout(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.Grid obj = (UnityEngine.Grid)o; UnityEngine.GridLayout.CellLayout arg0 = (UnityEngine.GridLayout.CellLayout)ToLua.CheckObject(L, 2, typeof(UnityEngine.GridLayout.CellLayout)); obj.cellLayout = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index cellLayout on a nil value")); } }
static int set_cellGap(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.Grid obj = (UnityEngine.Grid)o; UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2); obj.cellGap = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index cellGap on a nil value")); } }
static int get_cellSwizzle(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.Grid obj = (UnityEngine.Grid)o; UnityEngine.GridLayout.CellSwizzle ret = obj.cellSwizzle; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index cellSwizzle on a nil value")); } }
static int get_layoutGrid(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.Tilemaps.Tilemap obj = (UnityEngine.Tilemaps.Tilemap)o; UnityEngine.Grid ret = obj.layoutGrid; ToLua.PushSealed(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index layoutGrid on a nil value")); } }
static int _CreateUnityEngine_Grid(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { UnityEngine.Grid obj = new UnityEngine.Grid(); ToLua.PushSealed(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.Grid.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }