From 483068ce5247a9a7767a14da1316fc55dde1c599 Mon Sep 17 00:00:00 2001 From: YangHua <1475658476@qq.com> Date: Thu, 29 Feb 2024 22:36:03 +0800 Subject: [PATCH] ee --- Assets/Zion/Scripts/Adam/FormationManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Zion/Scripts/Adam/FormationManager.cs b/Assets/Zion/Scripts/Adam/FormationManager.cs index 49602b4f..3e5230ce 100644 --- a/Assets/Zion/Scripts/Adam/FormationManager.cs +++ b/Assets/Zion/Scripts/Adam/FormationManager.cs @@ -203,7 +203,7 @@ public class FormationManager : MonoSingleton var result = reciveInfo.Split(separators) // 对字符串进行切割操作 .Where(s => !String.IsNullOrWhiteSpace(s) && s != "") // 移除空白或者只包含空格的元素 .ToList(); - if (result.Count > 0) + if (result[2] != "" && !string.IsNullOrEmpty(result[2])) { if (result[0] == "group") {