Initial commit
This commit is contained in:
14
Assets/Materials/Scripts/SolarCursor.cs
Normal file
14
Assets/Materials/Scripts/SolarCursor.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class SolarCursor : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private Texture2D cursorTexture;
|
||||
|
||||
void Start()
|
||||
{
|
||||
Vector2 hotspot = new Vector2(0, 31);
|
||||
Cursor.SetCursor(cursorTexture, hotspot, CursorMode.Auto);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user