public void OnDetailChanged() { if (!ErrorFree()) { return; } if (mState == ASSIGNER_STATE.SDETAIL_VALUE_DUMMY) { mState = ASSIGNER_STATE.SDETAIL_VALUE_USEFUL; Debug.Log("Eating changed detail"); return; } cSelector.rGuys[cSelector.mActivePlayer].GetComponent <PE_Role>().mDetails = DP_Detail.options[DP_Detail.value].text; if (DP_Role.options[DP_Role.value].text == "Route") { // now if it's new, then make a new route? if (DP_Detail.options[DP_Detail.value].text == "New...") { Debug.Log("Make a new route"); cRouteTool.BT_NewRoute(); } else { cEditor.GetComponent <PE_DisplayPlayJobs>().FDisplayJobs(); } } else { cEditor.GetComponent <PE_DisplayPlayJobs>().FDisplayJobs(); } }
void Awake() { cEditor = GetComponentInParent <PE_Editor>(); cSelector = GetComponentInParent <PE_Selector>(); cRouteTool = GetComponentInParent <PE_RouteTool>(); mState = ASSIGNER_STATE.SNONE_SELECTED; }
public void OnRoleChanged() { if (!ErrorFree()) { return; } cSelector.rGuys[cSelector.mActivePlayer].GetComponent <PE_Role>().mRole = DP_Role.options[DP_Role.value].text; // Gotta also change the detail menu. SetDetailOptions(); mState = ASSIGNER_STATE.SDETAIL_VALUE_DUMMY; DP_Detail.value = DP_Detail.options.Count; }
public void OnDetailChanged() { if (!ErrorFree()) { return; } if (mState == ASSIGNER_STATE.SDETAIL_VALUE_DUMMY) { mState = ASSIGNER_STATE.SDETAIL_VALUE_USEFUL; Debug.Log("Eating changed detail"); return; } cSelector.rGuys[cSelector.mActivePlayer].GetComponent <PE_Role>().mDetails = DP_Detail.options[DP_Detail.value].text; }
void Awake() { cSelector = GetComponentInParent <DPC_Selector>(); mState = ASSIGNER_STATE.SNONE_SELECTED; }