Нашёл причину утечки памяти

This commit is contained in:
ThomasCharester committed 2026-03-24 15:16:17 +03:00
1 parent 60c28f54f2
commit 320847af5b
229 files changed
+3094 -18282

No files matched your search

@@ -1,11 +1,10 @@
using Code.Infrastructure.Generators;
using System;
using PrimeTween;
using UnityEngine;
using UnityEngine.UI;
namespace Code.Infrastructure.UI.Panels
{
[UIEventOpenClose]
public partial class LogoPanel : UIPanel
{
[SerializeField] private Image image;
@@ -13,12 +12,12 @@ namespace Code.Infrastructure.UI.Panels
[SerializeField] private Color hiddenColor;
public override void Open()
{
Tween.Color(image,shownColor, 1f).OnComplete(FireOpenedEvent);
Tween.Color(image,shownColor, 1f);
}
public override void Close()
public override void Close(Action callback = null)
{
Tween.Color(image,hiddenColor, 1f).OnComplete(FireClosedEvent);
Tween.Color(image,hiddenColor, 1f).OnComplete(callback);
}
}
}