예제 #1
0
    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();
        }
    }
예제 #2
0
    void Awake()
    {
        cEditor    = GetComponentInParent <PE_Editor>();
        cSelector  = GetComponentInParent <PE_Selector>();
        cRouteTool = GetComponentInParent <PE_RouteTool>();

        mState = ASSIGNER_STATE.SNONE_SELECTED;
    }
예제 #3
0
    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;
    }
예제 #4
0
    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;
    }
예제 #5
0
    void Awake()
    {
        cSelector = GetComponentInParent <DPC_Selector>();

        mState = ASSIGNER_STATE.SNONE_SELECTED;
    }