2023-12-26 02:10:48 +00:00
|
|
|
using Doozy.Runtime.UIManager.Containers;
|
2023-09-11 01:55:36 +00:00
|
|
|
using Sirenix.OdinInspector;
|
|
|
|
using UnityEngine;
|
2023-12-11 12:56:43 +00:00
|
|
|
|
2023-09-11 01:55:36 +00:00
|
|
|
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
|
|
namespace BlueWaterProject
|
|
|
|
{
|
|
|
|
public class UiManager : Singleton<UiManager>
|
|
|
|
{
|
2023-12-11 12:56:43 +00:00
|
|
|
[Title("Mouse")]
|
2023-09-11 01:55:36 +00:00
|
|
|
private Texture2D cursorTexture;
|
2023-12-13 07:14:31 +00:00
|
|
|
|
2024-01-28 15:46:56 +00:00
|
|
|
[Title("Ocean")]
|
2023-12-13 07:14:31 +00:00
|
|
|
public OceanUi OceanUi { get; set; }
|
2023-09-11 01:55:36 +00:00
|
|
|
|
2023-12-26 02:10:48 +00:00
|
|
|
[Title("Tycoon")]
|
|
|
|
public TycoonUi TycoonUi { get; set; }
|
|
|
|
|
2024-01-28 15:46:56 +00:00
|
|
|
[Title("Combat")]
|
|
|
|
public CombatUi CombatUi { get; set; }
|
|
|
|
|
2023-09-11 01:55:36 +00:00
|
|
|
|
|
|
|
private void Start()
|
|
|
|
{
|
|
|
|
CursorTextureChange();
|
2023-09-12 05:37:15 +00:00
|
|
|
|
|
|
|
//RadarTargetInit();
|
2023-09-11 01:55:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
private void CursorTextureChange()
|
|
|
|
{
|
|
|
|
cursorTexture = DataManager.Inst.cursorTexture;
|
|
|
|
//var hotSpot = new Vector2(cursorTexture.width / 2f, cursorTexture.height / 2f);
|
|
|
|
var hotSpot = Vector2.zero;
|
|
|
|
Cursor.SetCursor(cursorTexture, hotSpot, CursorMode.Auto);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|