2d progress

This commit is contained in:
ThomasCharester committed 2026-02-26 11:57:51 +03:00
1 parent 9f026b76d6
commit 63c3549673
70 files changed
+1008 -6260

No files matched your search

@@ -13,6 +13,7 @@ using Reflex.Injectors;
using Unity.Cinemachine;
using UnityEngine;
using UnityEngine.Rendering.Universal;
using UnityEngine.SceneManagement;
using Resolution = Reflex.Enums.Resolution;
namespace Code.Infrastructure.App
@@ -32,6 +33,8 @@ namespace Code.Infrastructure.App
{
public void InstallBindings(ContainerBuilder containerBuilder)
{
if(SceneManager.GetActiveScene().buildIndex != 0) SceneManager.LoadScene(0, LoadSceneMode.Single);
InitLoadings();
containerBuilder.RegisterType(typeof(EventBus.EventBus), Lifetime.Singleton, Resolution.Eager);
@@ -1,5 +1,5 @@
using System;
using DG.Tweening;
using System;
using PrimeTween;
using UnityEngine;
using UnityEngine.UI;
@@ -12,12 +12,12 @@ namespace Code.Infrastructure.UI.Panels
[SerializeField] private Color hiddenColor;
public override void Open(Action callback = null)
{
image.DOColor(shownColor, 1f).onComplete = () => callback?.Invoke();
Tween.Color(image,shownColor, 1f).OnComplete( () => callback?.Invoke());
}
public override void Close(Action callback = null)
{
image.DOColor(hiddenColor, 1f).onComplete += () => callback?.Invoke();
Tween.Color(image,hiddenColor, 1f).OnComplete( () => callback?.Invoke());
}
}
}
@@ -1,5 +1,5 @@
using System;
using DG.Tweening;
using System;
using PrimeTween;
using UnityEngine;
using UnityEngine.UI;
@@ -12,12 +12,12 @@ namespace Code.Infrastructure.UI.Panels
[SerializeField] private Color hiddenColor;
public override void Open(Action callback = null)
{
image.DOColor(shownColor, 1f).onComplete = () => callback?.Invoke();
Tween.Color(image,shownColor, 1f).OnComplete( () => callback?.Invoke());
}
public override void Close(Action callback = null)
{
image.DOColor(hiddenColor, 1f).onComplete += () => callback?.Invoke();
Tween.Color(image,hiddenColor, 1f).OnComplete( () => callback?.Invoke());
}
}
}