initial commit

This commit is contained in:
2026-06-04 00:55:54 +03:00
commit 89979b009f
1632 changed files with 880133 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
using UnityEngine;
public class ScrollLeverOnHover : MonoBehaviour
{
void Update()
{
float scroll = Input.mouseScrollDelta.y;
if (scroll == 0) return;
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
if (Physics.Raycast(ray, out RaycastHit hit))
{
if (hit.collider.gameObject.tag == "LeverParent")
{
StrikerLeverController slc = hit.collider.gameObject.GetComponent<StrikerLeverController>();
if (slc != null) slc.currentAngle += scroll;
}
}
}
}