PlantList

This commit is contained in:
ThomasCharester committed 2026-03-05 11:27:10 +03:00
1 parent ba49ef5015
commit 7c207ef5b9
44 files changed
+2795 -1147

No files matched your search

@@ -1,4 +1,3 @@
using System.Threading;
using Code.Infrastructure.Audio;
using Code.Infrastructure.Generators;
using Code.Infrastructure.UI;
@@ -22,7 +21,7 @@ namespace Code.Infrastructure.App.States
Context.UIService.TryRemovePanel(UIPanelType.Logo);
Context.UIService.TryRemovePanel(UIPanelType.Loading);
Context.UIService.TryLoadPanel(UIPanelType.PlantAdd);
Context.UIService.TryLoadCreatePanel(UIPanelType.PlantList);
// Context.AudioFactory.LoadAudioClips(AudioNames.UISounds);
}
@@ -32,12 +31,18 @@ namespace Code.Infrastructure.App.States
_eventBus.Unsubscribe(this);
}
public void UILoaded(UIPanelType uiPanelType)
public void UISinglePanelLoaded(UIPanelType uiPanelType)
{
if (uiPanelType != UIPanelType.PlantAdd) return;
if (uiPanelType != UIPanelType.PlantList) return;
Context.UIService.OpenPanel(uiPanelType);
}
public void UIMultiplePanelLoaded(UIPanelType uiPanelType, UIPanel panel)
{
}
public void OnReadyToPlay(AudioNames groupName)
{
// Context.AudioService.PlayRepeatedly(AudioNames.UISounds,0);