public void showRecruitMenu(bool cond, Vector3 loc, string name, int foodCost, int popCost) { if (_RecruitMenu) { _RecruitMenu.showMenu(cond, loc, name, foodCost, popCost); } }
public void Recruit(Rodent r, UIRecruitMenu menu) { // Debug.Log("MVC Rodent Recruit: " + _lastRodent); menu.showMenu(false, Vector3.zero, "", 0, 0); r.tag = "PlayerRodent"; //obsolete now r.Recruit(); CheckClicks(true); }
public void imClicked() { // Debug.Log("Heard Click Rodent: " + _Name); //Tell any old Menu To close _RecruitMenu.showMenu(false, Vector3.zero, null, 0, 0); //print("IM CLICKED " + _Name + " dismissmode:" + _isDismissMode + "status:" + _Status); if (_Status == eStatus.Available && _Team == 0 && !_isDismissMode && !UIAssignmentMenu.Instance.isActive()) { if (_RecruitMenu) { _RecruitMenu.showMenu(true, this); } else { Debug.LogError("No RecruitMenu"); } } //_Status != eStatus.Available && else if (_Team == 1 && _isDismissMode) { //Show Dismiss Button if (_RecruitMenu) { _RecruitMenu.showDismissMenu(true, this); } } else if (_Status == eStatus.Available && _Team == 1) { //Debug.Log("Show AssignmentMenu from Rodent"); // Show the Royal guard above players head // by activating the assignment menu! - might not want this UIAssignmentMenu.Instance.showMenu(true, this.transform.gameObject); //TO-DO: Need to phase Out UIAssignmentMenu.Instance.CreateButtons(GameManager.Instance.getPlayerRodents()); } }