Esempio n. 1
0
        public void open(TargetBox tb)
        {
            _content = tb.target.content;

            _window.setContent(_content);
            _window.open();
        }
Esempio n. 2
0
        public void setContent(TargetContent content)
        {
            if (content_)
            {
                GameObject.Destroy(content_.gameObject);
            }
            content_ = GameObject.Instantiate(content, this.transform);

            content_.show();
            Canvas canvas = content_.GetComponentInChildren <Canvas>();

            if (canvas != null)
            {
                canvas.worldCamera = null;
            }
            content_.transform.localPosition = Vector3.zero;
            content_.transform.localRotation = Quaternion.identity;
            content_.doClose += onClose;
        }
Esempio n. 3
0
 public void close()
 {
     _content = null;
     _window.close();
 }