|
@@ -111,9 +111,13 @@ namespace GFGGame
|
|
|
protected override void OnShown()
|
|
|
{
|
|
|
base.OnShown();
|
|
|
-
|
|
|
- _suitId = (int)(this.viewData as object[])[0];
|
|
|
- _selectedItemId = (this.viewData as object[]).Length > 1 ? (int)(this.viewData as object[])[1] : 0;
|
|
|
+ _suitId = 0;
|
|
|
+ _selectedItemId = 0;
|
|
|
+ if (this.viewData != null)
|
|
|
+ {
|
|
|
+ _suitId = (int)(this.viewData as object[])[0];
|
|
|
+ _selectedItemId = (this.viewData as object[]).Length > 1 ? (int)(this.viewData as object[])[1] : 0;
|
|
|
+ }
|
|
|
_valueBarController.OnShown();
|
|
|
_ui.m_loaBg.url = ResPathUtil.GetBgImgPath("hc_bj_1");
|
|
|
|