File tree Expand file tree Collapse file tree 6 files changed +48
-0
lines changed
Scripts/Game/UGUI/UILauncher Expand file tree Collapse file tree 6 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,16 @@ public UnityEngine.UI.Text m_TitleText
103103
104104 #endregion
105105
106+ private bool _isInitView = false ;
107+
106108 protected override void InitView ( )
107109 {
110+ if ( _isInitView )
111+ {
112+ return ;
113+ }
114+
115+ _isInitView = true ;
108116 this . self = this . gameObject ;
109117 UserName_Placeholder = gameObject . transform . FindChildName ( "UserName/Placeholder" ) . GetComponent < UnityEngine . UI . Text > ( ) ;
110118 UserName_Text = gameObject . transform . FindChildName ( "UserName/Text" ) . GetComponent < UnityEngine . UI . Text > ( ) ;
Original file line number Diff line number Diff line change @@ -71,8 +71,16 @@ public UnityEngine.UI.Text m_player_level
7171
7272 #endregion
7373
74+ private bool _isInitView = false ;
75+
7476 protected override void InitView ( )
7577 {
78+ if ( _isInitView )
79+ {
80+ return ;
81+ }
82+
83+ _isInitView = true ;
7684 this . self = this . gameObject ;
7785 BgImage = gameObject . transform . FindChildName ( "BgImage" ) . GetComponent < UnityEngine . UI . Image > ( ) ;
7886 bag_button_Text = gameObject . transform . FindChildName ( "bag_button/Text" ) . GetComponent < UnityEngine . UI . Text > ( ) ;
Original file line number Diff line number Diff line change @@ -79,8 +79,16 @@ public UnityEngine.UI.Text m_UserNameText
7979
8080 #endregion
8181
82+ private bool _isInitView = false ;
83+
8284 protected override void InitView ( )
8385 {
86+ if ( _isInitView )
87+ {
88+ return ;
89+ }
90+
91+ _isInitView = true ;
8492 this . self = this . gameObject ;
8593 UserName_Placeholder = gameObject . transform . FindChildName ( "UserName/Placeholder" ) . GetComponent < UnityEngine . UI . Text > ( ) ;
8694 UserName_Text = gameObject . transform . FindChildName ( "UserName/Text" ) . GetComponent < UnityEngine . UI . Text > ( ) ;
Original file line number Diff line number Diff line change @@ -127,8 +127,16 @@ public UnityEngine.UI.Image m_right_Panel
127127
128128 #endregion
129129
130+ private bool _isInitView = false ;
131+
130132 protected override void InitView ( )
131133 {
134+ if ( _isInitView )
135+ {
136+ return ;
137+ }
138+
139+ _isInitView = true ;
132140 this . self = this . gameObject ;
133141 left_Panel_ScrollView_Viewport_Content = gameObject . transform . FindChildName ( "left_Panel/Scroll View/Viewport/Content" ) . GetComponent < UnityEngine . Transform > ( ) ;
134142 left_Panel_ScrollView_Viewport = gameObject . transform . FindChildName ( "left_Panel/Scroll View/Viewport" ) . GetComponent < UnityEngine . UI . Image > ( ) ;
Original file line number Diff line number Diff line change @@ -55,8 +55,16 @@ public UnityEngine.UI.Text m_name_text
5555
5656 #endregion
5757
58+ private bool _isInitView = false ;
59+
5860 protected override void InitView ( )
5961 {
62+ if ( _isInitView )
63+ {
64+ return ;
65+ }
66+
67+ _isInitView = true ;
6068 this . self = this . gameObject ;
6169 click_Button = gameObject . transform . FindChildName ( "click_Button" ) . GetComponent < UnityEngine . UI . Button > ( ) ;
6270 icon = gameObject . transform . FindChildName ( "icon" ) . GetComponent < GameFrameX . UI . UGUI . Runtime . UIImage > ( ) ;
Original file line number Diff line number Diff line change @@ -110,8 +110,16 @@ public UnityEngine.UI.Image m_upgrade
110110
111111 #endregion
112112
113+ private bool _isInitView = false ;
114+
113115 protected override void InitView ( )
114116 {
117+ if ( _isInitView )
118+ {
119+ return ;
120+ }
121+
122+ _isInitView = true ;
115123 this . self = this . gameObject ;
116124 BgImage = gameObject . transform . FindChildName ( "BgImage" ) . GetComponent < UnityEngine . UI . Image > ( ) ;
117125 TipText = gameObject . transform . FindChildName ( "TipText" ) . GetComponent < UnityEngine . UI . Text > ( ) ;
You can’t perform that action at this time.
0 commit comments