|
|
@ -18,12 +18,20 @@ public class CursorManager : MonoBehaviour
|
|
|
|
private void Awake()
|
|
|
|
private void Awake()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if UNITY_ANDROID || UNITY_IOS
|
|
|
|
|
|
|
|
HideCursor();
|
|
|
|
|
|
|
|
#endif
|
|
|
|
foreach (CursorData cursor in cursorList)
|
|
|
|
foreach (CursorData cursor in cursorList)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
cursorDictionary[cursor.state] = cursor.cursorSprite;
|
|
|
|
cursorDictionary[cursor.state] = cursor.cursorSprite;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void HideCursor()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
gameObject.SetActive(false);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void Start()
|
|
|
|
private void Start()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
GameStateManager.Instance.OnStateChanged += SetCursor;
|
|
|
|
GameStateManager.Instance.OnStateChanged += SetCursor;
|
|
|
|