Example #1
0
    public void LinkObjectsAndComponents()
    {
        sman = FindObjectOfType <SceneMan>();
        if (sman == null)
        {
            throw new UnityException("Frame panel could not find RegionMan");
        }
        fman = FindObjectOfType <FrameMan>();

        if (fman == null)
        {
            Debug.Log("lman null");
        }
        {
            visTiedToggle   = transform.Find("VisibilityTiedToggle").gameObject.GetComponent <Toggle>();
            showCarsToggle  = transform.Find("ShowCarRectsToggle").gameObject.GetComponent <Toggle>();
            showPersToggle  = transform.Find("ShowPersRectsToggle").gameObject.GetComponent <Toggle>();
            showHeadToggle  = transform.Find("ShowHeadRectsToggle").gameObject.GetComponent <Toggle>();
            frameJourneys   = transform.Find("FrameJourneysToggle").gameObject.GetComponent <Toggle>();
            frameBuildings  = transform.Find("FrameBuildingsToggle").gameObject.GetComponent <Toggle>();
            frameGarages    = transform.Find("FrameGaragesToggle").gameObject.GetComponent <Toggle>();
            frameZones      = transform.Find("FrameZonesToggle").gameObject.GetComponent <Toggle>();
            topTextDropdown = transform.Find("TopTextDropdown").gameObject.GetComponent <Dropdown>();
            botTextDropdown = transform.Find("BotTextDropdown").gameObject.GetComponent <Dropdown>();
        }
        linked      = true;
        panelActive = true;
    }
Example #2
0
    public void LinkObjectsAndComponents()
    {
        sman = FindObjectOfType <SceneMan>();
        if (sman == null)
        {
            throw new UnityException("General panel could not find RegionMan");
        }
        fman = FindObjectOfType <FrameMan>();

        if (fman == null)
        {
            Debug.Log("lman null");
        }
        {
            var go = transform.Find("FastModeToggle").gameObject;
            fastModeToggle = go.GetComponent <Toggle>();
        }

        panelActive = true;
    }