RegisterWindow() public method

public RegisterWindow ( ModalWindow, window ) : void
window ModalWindow,
return void
Ejemplo n.º 1
0
                // Use this for initialization
                protected virtual void Start()
                {
                    windowManager = GameObject.Find("VoxWorld").GetComponent <ModalWindowManager>();

                    id = windowManager.windowManager.Count;

                    if (!windowManager.windowManager.ContainsKey(id))
                    {
                        windowManager.RegisterWindow(this);
                    }
                    else
                    {
                        Debug.Log("ModalWindow of id " + id + " already exists on this object!");
                        Destroy(this);
                    }

                    if (autoOpen)
                    {
                        Render = true;
                    }
                }
Ejemplo n.º 2
0
    // Use this for initialization
    protected virtual void Start()
    {
        windowManager = gameObject.GetComponent<ModalWindowManager> ();

        if (!windowManager.windowManager.ContainsKey (id)) {
            windowManager.RegisterWindow (this);
        }
        else {
            Debug.Log ("ModalWindow of id " + id.ToString () + "already exists on this object!");
            Destroy(this);
        }
    }