36 lines
882 B
C#
36 lines
882 B
C#
using Doozy.Runtime.UIManager.Containers;
|
|
using Sirenix.OdinInspector;
|
|
using UnityEngine;
|
|
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
namespace BlueWaterProject
|
|
{
|
|
public class UiManager : Singleton<UiManager>
|
|
{
|
|
[Title("Mouse")]
|
|
private Texture2D cursorTexture;
|
|
|
|
public OceanUi OceanUi { get; set; }
|
|
|
|
[Title("Tycoon")]
|
|
public TycoonUi TycoonUi { get; set; }
|
|
|
|
|
|
private void Start()
|
|
{
|
|
CursorTextureChange();
|
|
|
|
//RadarTargetInit();
|
|
}
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|