21 lines
470 B
C#
21 lines
470 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class CursorChanger : MonoBehaviour
|
|
{
|
|
public Texture2D cursorTexture;
|
|
public CursorMode cursorMode = CursorMode.Auto;
|
|
public Vector2 hotSpot = Vector2.zero;
|
|
|
|
|
|
public void Start()
|
|
{
|
|
Cursor.SetCursor(cursorTexture, hotSpot, cursorMode);
|
|
}
|
|
|
|
//public void EndHovering()
|
|
//{
|
|
// Cursor.SetCursor(null, Vector2.zero, cursorMode);
|
|
//}
|
|
}
|