mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 21:47:39 +02:00
Timeline improvements
This commit is contained in:
15
Assets/Scripts/Common/FollowMouse.cs
Normal file
15
Assets/Scripts/Common/FollowMouse.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RhythmHeavenMania.Common
|
||||
{
|
||||
public class FollowMouse : MonoBehaviour
|
||||
{
|
||||
private void Update()
|
||||
{
|
||||
var pos = Camera.main.ScreenToWorldPoint(Input.mousePosition);
|
||||
transform.position = new Vector3(pos.x, pos.y, 0);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user