mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
Reduce allocations, CNO pooling, code improvements
This commit is contained in:
1 parent
c0ce71417a
commit
f2ac622318
47 files changed
+539
-440
No files matched your search
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user