Playability
Fixed loadout generator tutorial edge cases Recreated missing items Created field shader & test scene
This commit is contained in:
parent
69aca09f63
commit
47e500e1ce
72 changed files with 3579 additions and 693 deletions
20
Assets/Scripts/UI/SpriteCursor.cs
Normal file
20
Assets/Scripts/UI/SpriteCursor.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.InputSystem;
|
||||
|
||||
public class SpriteCursor : MonoBehaviour
|
||||
{
|
||||
public Canvas Canvas;
|
||||
private RectTransform _rectTransform;
|
||||
|
||||
void Start()
|
||||
{
|
||||
_rectTransform = GetComponent<RectTransform>();
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
_rectTransform.anchoredPosition = Mouse.current.position.ReadValue() / Canvas.scaleFactor;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue