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

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

@@ -17,7 +17,7 @@ namespace Code.Infrastructure.UI.Panels
Tween.Color(image,shownColor, 1f).OnComplete(FireOpenedEvent);
}
public override void Close()
public override void Close(Action callback = null)
{
Tween.Color(image,hiddenColor, 1f).OnComplete(FireClosedEvent);
}
@@ -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);
}
}
}
@@ -1,12 +1,10 @@
using Code.Debug;
using Code.Infrastructure.Audio;
using Code.Infrastructure.Generators;
using Code.Infrastructure.Audio;
using Reflex.Attributes;
using UnityEngine;
namespace Code.Infrastructure.UI.Panels
{
[UIEventOpenClose]
public partial class MenuChoosePanel : UIPanel
{
[Inject] IAudioService _audioService;
@@ -17,12 +15,6 @@ namespace Code.Infrastructure.UI.Panels
public override void Open()
{
sceneChooser.EnableButtons();
FireOpenedEvent();
}
public override void Close()
{
FireClosedEvent();
}
}
}