|
@@ -33,15 +33,18 @@ namespace GFGGame
|
|
|
{
|
|
|
base.OnShown();
|
|
|
_ui.m_content.m_txtContent.text = "";
|
|
|
- _dialogListLookBack = new List<string>();
|
|
|
- string stroyStartID = (string)this.viewData;
|
|
|
-
|
|
|
- ShowNextStep(stroyStartID);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ if (this.viewData is string)
|
|
|
+ {
|
|
|
+ string stroyStartID = (string)this.viewData;
|
|
|
+ _dialogListLookBack = new List<string>();
|
|
|
+ ShowNextStep(stroyStartID);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ _dialogListLookBack = (List<string>)this.viewData;
|
|
|
+ }
|
|
|
|
|
|
- if (stroyStartID != null)
|
|
|
+ if (_dialogListLookBack != null)
|
|
|
{
|
|
|
string content = "";
|
|
|
foreach (string words in _dialogListLookBack)
|