chore: Project Restructuring & Theatre
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
using UnityEngine;
|
||||
using Unheimlich.Core;
|
||||
|
||||
namespace Unheimlich.Features.Dialogue.UI
|
||||
{
|
||||
public class CrosshairController : Singleton<CrosshairController>
|
||||
{
|
||||
[Header("References")]
|
||||
[SerializeField] private GameObject _crosshairObject;
|
||||
|
||||
private bool _isVisible = true;
|
||||
|
||||
protected override void OnAwake()
|
||||
{
|
||||
if (_crosshairObject != null)
|
||||
_crosshairObject.SetActive(true);
|
||||
}
|
||||
|
||||
public void Show()
|
||||
{
|
||||
if (_crosshairObject != null)
|
||||
_crosshairObject.SetActive(true);
|
||||
_isVisible = true;
|
||||
}
|
||||
|
||||
public void Hide()
|
||||
{
|
||||
if (_crosshairObject != null)
|
||||
_crosshairObject.SetActive(false);
|
||||
_isVisible = false;
|
||||
}
|
||||
|
||||
public bool IsVisible => _isVisible;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user