diff --git a/Assets/Zion/Scripts/Adam/FormationManager.cs b/Assets/Zion/Scripts/Adam/FormationManager.cs index 3e5230ce..c8597fe9 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[2] != "" && !string.IsNullOrEmpty(result[2])) + if (result.Count > 3) { if (result[0] == "group") {