public void Initialize(DungeonRoom room) { room.Add(this); transform.GetChild(0).GetComponent <Renderer>().material = room.settings.floorMaterial; }