|
|
|
|
|
|
private GameObject _currentSelection; |
|
|
|
private GameObject _mouseSelection; |
|
|
|
[SerializeField] private InputReader _inputReader; |
|
|
|
public bool IsMouseActive { get; private set; } |
|
|
|
private void OnEnable() |
|
|
|
{ |
|
|
|
_inputReader.Menu.MouseMoveMenuEvent += HandleMoveCursor; |
|
|
|
|
|
|
private void DisableCursor() |
|
|
|
{ |
|
|
|
Cursor.visible = false; |
|
|
|
IsMouseActive = false; |
|
|
|
} |
|
|
|
|
|
|
|
private void HandleMoveCursor() |
|
|
|
|
|
|
private void EnableCursor() |
|
|
|
{ |
|
|
|
Cursor.visible = true; |
|
|
|
IsMouseActive = true; |
|
|
|
} |
|
|
|
|
|
|
|
private void StoreSelection(GameObject uiElement) |
|
|
|