Reduce allocations, CNO pooling, code improvements

This commit is contained in:
Gurge44 committed 2026-05-12 14:33:58 +02:00
1 parent c0ce71417a
commit f2ac622318
47 files changed
+539 -440

No files matched your search

+2
View File
@@ -25,6 +25,8 @@ public class ErrorText : MonoBehaviour
public void Update()
{
if (AllErrors.Count == 0) return;
AllErrors.ForEach(err => err.IncreaseTimer());
ErrorData[] ToRemove = AllErrors.Where(err => err.ErrorLevel <= 1 && 30f < err.Timer).ToArray();