fix
This commit is contained in:
6334
.idea/.idea.BABA_YAGA/.idea/workspace.xml
generated
6334
.idea/.idea.BABA_YAGA/.idea/workspace.xml
generated
File diff suppressed because it is too large
Load Diff
19
Assets/Scripts/UI/BaseUIController.cs
Normal file
19
Assets/Scripts/UI/BaseUIController.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace Hallucinate.UI
|
||||
{
|
||||
public abstract class BaseUIController
|
||||
{
|
||||
protected VisualElement root;
|
||||
protected UIManager uiManager;
|
||||
|
||||
public virtual void Initialize(VisualElement uxmlRoot, UIManager manager)
|
||||
{
|
||||
root = uxmlRoot;
|
||||
uiManager = manager;
|
||||
}
|
||||
|
||||
public virtual void Update() { }
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/UI/BaseUIController.cs.meta
Normal file
2
Assets/Scripts/UI/BaseUIController.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 872f8bfaee91588488a3393579135de9
|
||||
4
Assets/Scripts/UI/LobbyController.cs
Normal file
4
Assets/Scripts/UI/LobbyController.cs
Normal file
@@ -0,0 +1,4 @@
|
||||
namespace Hallucinate.UI
|
||||
{
|
||||
public class LobbyController : BaseUIController { }
|
||||
}
|
||||
2
Assets/Scripts/UI/LobbyController.cs.meta
Normal file
2
Assets/Scripts/UI/LobbyController.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9c37c552a9c18a242bcc8860a0a5212f
|
||||
30
Assets/Scripts/UI/LocalizationManager.cs
Normal file
30
Assets/Scripts/UI/LocalizationManager.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Hallucinate.UI
|
||||
{
|
||||
public class LocalizationManager : MonoBehaviour
|
||||
{
|
||||
public static LocalizationManager Instance { get; private set; }
|
||||
|
||||
public event Action OnLanguageChanged;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
if (Instance == null)
|
||||
{
|
||||
Instance = this;
|
||||
DontDestroyOnLoad(gameObject);
|
||||
}
|
||||
else
|
||||
{
|
||||
Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
|
||||
public string GetLocalizedString(string key)
|
||||
{
|
||||
return key;
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/UI/LocalizationManager.cs.meta
Normal file
2
Assets/Scripts/UI/LocalizationManager.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ff7ac0ce8c8c98445b895ac53a4618f1
|
||||
@@ -2,9 +2,6 @@ using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
using PrimeTween;
|
||||
using System.Threading.Tasks;
|
||||
using DG.Tweening;
|
||||
using Tween = PrimeTween.Tween;
|
||||
using Ease = PrimeTween.Ease;
|
||||
|
||||
namespace Hallucinate.UI
|
||||
{
|
||||
@@ -166,8 +163,8 @@ namespace Hallucinate.UI
|
||||
|
||||
public override async Task PlayTransitionOut()
|
||||
{
|
||||
/*if (_rotationTween.isAlive) _rotationTween.Stop();
|
||||
await base.PlayTransitionOut();#1#
|
||||
if (_rotationTween.isAlive) _rotationTween.Stop();
|
||||
await base.PlayTransitionOut();
|
||||
}*/
|
||||
|
||||
/*private async void OnLogoClicked(ClickEvent evt)
|
||||
|
||||
2
Assets/Scripts/UI/MainMenuController.cs.meta
Normal file
2
Assets/Scripts/UI/MainMenuController.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 691980524acfc544f9660cfc35ce3616
|
||||
4
Assets/Scripts/UI/ProfileController.cs
Normal file
4
Assets/Scripts/UI/ProfileController.cs
Normal file
@@ -0,0 +1,4 @@
|
||||
namespace Hallucinate.UI
|
||||
{
|
||||
public class ProfileController : BaseUIController { }
|
||||
}
|
||||
2
Assets/Scripts/UI/ProfileController.cs.meta
Normal file
2
Assets/Scripts/UI/ProfileController.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fdea16b110511ef45889ed832b63560b
|
||||
18
Assets/Scripts/UI/UIManager.cs
Normal file
18
Assets/Scripts/UI/UIManager.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace Hallucinate.UI
|
||||
{
|
||||
public class UIManager : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private UIDocument uiDocument;
|
||||
|
||||
public async Task Push<T>() where T : BaseUIController
|
||||
{
|
||||
await Task.CompletedTask;
|
||||
}
|
||||
|
||||
public void ToggleSettings() { }
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/UI/UIManager.cs.meta
Normal file
2
Assets/Scripts/UI/UIManager.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bcb7b8ed439bb4546b0648c627c2ce5d
|
||||
Reference in New Issue
Block a user