toggle method
- DebugMode mode
Draws mode, or clears the overlay if it was already the one drawing.
Implementation
void toggle(DebugMode mode) {
this.mode = this.mode == mode ? null : mode;
}
Draws mode, or clears the overlay if it was already the one drawing.
void toggle(DebugMode mode) {
this.mode = this.mode == mode ? null : mode;
}