// ---------- Mouse Controls ---- // Mouse over destination cell void OnMouseEnter() { // If the game is not paused if (!levelControl.checkPause()) { // If the level is over, do nothing if (levelControl.levelEnd) { return; } // If we're currently in a move and this cell is not the origin cell, highlight this cell if (inputControl.checkMove() == true && inputControl.originCell != transform) { // Store this cell as potential destCell inputControl.destCell = transform; inputControl.destCellControl = this; // If the origin cell and this cell are in the origin cell's drone range if (isInRangeOfOriginCell(false)) { // Highlight the cell blue to indicate a valid move highlightBlue.enabled = true; } else { // Otherwise, highlight red to indicate out of range highlightRed.enabled = true; } } } }