コード例 #1
0
ファイル: UiPanel.cs プロジェクト: spotco/ld-33
        /// <summary>
        /// Initialize this panel.
        /// Create the link between the panel manager and the
        /// </summary>
        public void Initialize(UiPanelMgr ownerManager)
        {
            _ownerManager = ownerManager;

            OnInitialize ();

            // Deactivate the object just in case it was active during edit mode.
            // We don't want to call Deactivate, since this triggers the callback.
            this.gameObject.SetActive (false);
        }
コード例 #2
0
ファイル: UiPanel.cs プロジェクト: doggan/ld-33
        /// <summary>
        /// Initialize this panel.
        /// Create the link between the panel manager and the
        /// </summary>
        public void Initialize(UiPanelMgr ownerManager)
        {
            _ownerManager = ownerManager;

            OnInitialize();

            // Deactivate the object just in case it was active during edit mode.
            // We don't want to call Deactivate, since this triggers the callback.
            this.gameObject.SetActive(false);
        }
コード例 #3
0
ファイル: UiPanel.cs プロジェクト: RCQuest/uzuutil
        /// <summary>
        /// Initialize this panel.
        /// Create the link between the panel manager and the
        /// </summary>
        public void Initialize(UiPanelMgr ownerManager)
        {
            _ownerManager = ownerManager;

            //Connect all the child widget to this panel
            Component[] widgets = this.gameObject.GetComponentsInChildren<UiWidget> (true);
            foreach (UiWidget widget in widgets) {
                widget.Initialize (this);
            }

            OnInitialize ();

            // Deactivate the object just in case it was active during edit mode.
            // We don't want to call Deactivate, since this triggers the callback.
            this.gameObject.SetActive (false);
        }
コード例 #4
0
ファイル: UiPanel.cs プロジェクト: rcabot/uzuutil
        /// <summary>
        /// Initialize this panel.
        /// Create the link between the panel manager and the
        /// </summary>
        public void Initialize(UiPanelMgr ownerManager)
        {
            _ownerManager = ownerManager;

            //Connect all the child widget to this panel
            Component[] widgets = this.gameObject.GetComponentsInChildren <UiWidget> (true);
            foreach (UiWidget widget in widgets)
            {
                widget.Initialize(this);
            }

            OnInitialize();

            // Deactivate the object just in case it was active during edit mode.
            // We don't want to call Deactivate, since this triggers the callback.
            this.gameObject.SetActive(false);
        }