Exemple #1
0
    void Start()
    {
        #region Initialization
        inTabView        = false;
        children         = new List <GameObject>();
        attrStorage      = new List <MonitorAttr>();
        locationStorage  = new List <Vector3>();
        sizeStorage      = new List <Vector3>();
        _previewSize     = new Vector3(0.4759674f, 0.2677317f, 0f);
        _sceneResetTimer = 0;
        gameObject.SetActive(true); //default state of the monitors
        _vbutton = (ToggleVisibilityButton)FindObjectOfType(typeof(ToggleVisibilityButton));
        #endregion Initialization

        resetScene(); //setup scene
        gregg.resetGregg();
        _vbutton.reset();
    }