mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
More Array Usage
This commit is contained in:
1 parent
7285a056d3
commit
644bab4024
78 files changed
+310
-495
No files matched your search
@@ -89,9 +89,8 @@ public class ErrorText : MonoBehaviour
|
||||
{
|
||||
string text = string.Empty;
|
||||
int maxLevel = 0;
|
||||
for (int i = 0; i < AllErrors.Count; i++)
|
||||
foreach (ErrorData err in AllErrors.ToArray())
|
||||
{
|
||||
ErrorData err = AllErrors[i];
|
||||
text += $"{err}: {err.Message}\n";
|
||||
if (maxLevel < err.ErrorLevel) maxLevel = err.ErrorLevel;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user