mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-04-30 17:04:27 +02:00
15 lines
363 B
C#
15 lines
363 B
C#
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);
|
|
}
|
|
}
|
|
} |