|
@@ -102,6 +102,7 @@ namespace GFGGame
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public static string _lastDialogPic;
|
|
public static async void UpdateDialogPic(string value, GameObject sceneObj)
|
|
public static async void UpdateDialogPic(string value, GameObject sceneObj)
|
|
{
|
|
{
|
|
StoryDialogDataManager.Instance.waitPicFade = false;
|
|
StoryDialogDataManager.Instance.waitPicFade = false;
|
|
@@ -110,6 +111,14 @@ namespace GFGGame
|
|
|
|
|
|
SpriteRenderer spr = tf.GetComponent<SpriteRenderer>();
|
|
SpriteRenderer spr = tf.GetComponent<SpriteRenderer>();
|
|
SpriteRenderer sprFace = face.GetComponent<SpriteRenderer>();
|
|
SpriteRenderer sprFace = face.GetComponent<SpriteRenderer>();
|
|
|
|
+
|
|
|
|
+ // 立绘切换 脸消失
|
|
|
|
+ if(_lastDialogPic != value)
|
|
|
|
+ {
|
|
|
|
+ SpriteHelper.RemoveSpriteFrom(sprFace);
|
|
|
|
+ }
|
|
|
|
+ _lastDialogPic = value;
|
|
|
|
+
|
|
if (value == "0")
|
|
if (value == "0")
|
|
{
|
|
{
|
|
SpriteHelper.RemoveSpriteFrom(spr);
|
|
SpriteHelper.RemoveSpriteFrom(spr);
|
|
@@ -151,6 +160,7 @@ namespace GFGGame
|
|
StoryDialogDataManager.Instance.waitPicFade = false;
|
|
StoryDialogDataManager.Instance.waitPicFade = false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
public static void UpdateDialogAnim(string value, ref GameObject animObj)
|
|
public static void UpdateDialogAnim(string value, ref GameObject animObj)
|