public void imClicked() { //Debug.LogWarning("MouseDownOnOWorker"); if (!isOccupied()) { //Debug.Log("Heard Not Occupied"); //tell the MVC Controller which Building has been clicked //Becoming obsolete MVCController.Instance.setLastClicked(_owner); // Need to Ask GameManager for a List of Player Rodents List <Rodent> _PlayerRodents = GameManager.Instance.getPlayerRodents(); if (_menu) { _menu.CreateButtons(_PlayerRodents); } else { //Debug.LogWarning("No AssignmentMenu, attempting to re-setup"); setUpMenu(); _menu.CreateButtons(_PlayerRodents); } if (bo) { // Debug.Log("We have a BO - show false"); bo.ShowRedX(false); } else if (ps) { ps.ShowRedX(false); } //ShowMenu Manually here UIAssignmentMenu.Instance.showMenu(true, _owner); } else { // Option to dismiss current worker //Debug.Log("Occupied"); //Pull Up red X if (bo) { // Debug.Log("We have a BO - show True"); bo.ShowRedX(true); //Able to click the X ToggleCollider(false); } else if (ps) { ps.ShowRedX(true); //Able to click the X ToggleCollider(false); } //still activate the assignment menu for now UIAssignmentMenu.Instance.showMenu(true, _owner); // To-Do: in future might want to instead display info about the Rodent assigned? } }