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") {