void Update() { tile.SetDirty(false); PreviewChunk.use.chunk.SetDirty(false); if (bindUndo.IsPressed() && undos.Count > 0) { Do(new UndoAct()); } if (bindRedo.IsPressed() && redos.Count > 0) { Do(new RedoAct()); } if (bindToolPlace.IsPressed()) { Do(new ChangeToolAct(Tool.Place)); } if (bindToolPaint.IsPressed()) { Do(new ChangeToolAct(Tool.Paint)); } if (bindToolFill.IsPressed()) { Do(new ChangeToolAct(Tool.Fill)); } if (bindToolBox.IsPressed()) { Do(new ChangeToolAct(Tool.Box)); } if (bindToolPicker.IsPressed()) { Do(new ChangeToolAct(Tool.Picker)); } if (batch.Count > 0 && Time.time > batchTime) { DoBatch(); } }