Skip to content
Snippets Groups Projects

startScreen new look

Closed Martin Jirénius requested to merge guiShell into develop
65 files
+ 1562
378
Compare changes
  • Side-by-side
  • Inline
Files
65
+ 23
0
 
using System.Collections;
 
using System.Collections.Generic;
 
using UnityEngine;
 
 
public class CursorChanger : MonoBehaviour
 
{
 
public Texture2D newCursor;
 
public void Start()
 
{
 
// Create a texture. Texture size does not matter, since
 
// LoadImage will replace with with incoming image size.
 
}
 
 
public void OnMouseEnter()
 
{
 
Cursor.SetCursor(newCursor, Vector2.zero, CursorMode.Auto);
 
}
 
 
public void OnMouseExit()
 
{
 
Cursor.SetCursor(null, Vector2.zero, CursorMode.Auto);
 
}
 
}
Loading