public NBTChunk() { gameObject = new GameObject("chunk (" + x + "," + z + ")"); transform = gameObject.transform; collidable = NBTGameObject.Create("Collidable", transform, LayerMask.NameToLayer("Chunk")); notCollidable = NBTGameObject.Create("NotCollidable", transform, LayerMask.NameToLayer("Plant")); water = NBTGameObject.Create("Water", transform, LayerMask.NameToLayer("Water"), false); }
public NBTChunk() { gameObject = new GameObject("chunk (" + x + "," + z + ")"); transform = gameObject.transform; collidable = NBTGameObject.Create("Collidable", this, LayerMask.NameToLayer("Chunk")); notCollidable = NBTGameObject.Create("NotCollidable", this, LayerMask.NameToLayer("Plant"), false); water = NBTGameObject.CreateWater("Water", this, LayerMask.NameToLayer("Water")); special = new GameObject("special"); special.transform.parent = transform; special.transform.localPosition = Vector3.zero; }