mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 11:45:09 +00: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);
|
||
|
}
|
||
|
}
|
||
|
}
|