PlantList
This commit is contained in:
1 parent
ba49ef5015
commit
7c207ef5b9
44 files changed
+2795
-1147
No files matched your search
@@ -60,7 +60,7 @@ namespace Code.Infrastructure.App
|
||||
containerBuilder.RegisterType(typeof(PlantService), new[] { typeof(IPlantService) }, Lifetime.Singleton,
|
||||
Resolution.Eager);
|
||||
|
||||
containerBuilder.RegisterType(typeof(ConstantImagesService), Lifetime.Singleton,
|
||||
containerBuilder.RegisterType(typeof(ConstantImagesService), new []{typeof(IConstantImagesService)}, Lifetime.Singleton,
|
||||
Resolution.Eager);
|
||||
}
|
||||
|
||||
@@ -114,12 +114,13 @@ namespace Code.Infrastructure.App
|
||||
{
|
||||
_initialLoading.DoProgress();
|
||||
|
||||
_thatRightContainer.Resolve<IUIService>().TryLoadPanel(UIPanelType.Logo);
|
||||
_thatRightContainer.Resolve<IUIService>().TryLoadPanel(UIPanelType.Loading);
|
||||
_thatRightContainer.Resolve<IUIService>().TryLoadCreatePanel(UIPanelType.Logo);
|
||||
_thatRightContainer.Resolve<IUIService>().TryLoadCreatePanel(UIPanelType.Loading);
|
||||
}
|
||||
|
||||
public void UILoaded(UIPanelType uiPanelType)
|
||||
public void UISinglePanelLoaded(UIPanelType uiPanelType)
|
||||
{
|
||||
Debug.LogWarning($@"Loaded {uiPanelType.ToString()}");
|
||||
switch (uiPanelType)
|
||||
{
|
||||
case UIPanelType.Logo:
|
||||
@@ -136,6 +137,11 @@ namespace Code.Infrastructure.App
|
||||
}
|
||||
}
|
||||
|
||||
public void UIMultiplePanelLoaded(UIPanelType uiPanelType, UIPanel panel)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void AudioSourcePoolInitialized()
|
||||
{
|
||||
_initialLoading.DoProgress();
|
||||
@@ -161,6 +167,7 @@ namespace Code.Infrastructure.App
|
||||
|
||||
public void PlantsLoaded()
|
||||
{
|
||||
Debug.LogWarning("PlantsLoaded");
|
||||
_initialLoading.DoProgress();
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user