public void TileClicked(TileBehavior tile, int button) { if (disableUi_) { // ignore click while moving return; } DeactivateTiles(); if (button == 0 && actionState_ == ActionState.MOVE) { MoveCharacterTo(tile); disableUi_ = true; } else if (button == 1) { tile.TogglePassable(); } if (!disableUi_) { ActivateFrom(GetCurrentCharacter()); } }