Initial import of Rhyculator
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
commit
728bb0c657
315 files changed
+96030
No files matched your search
@@ -0,0 +1,28 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class TouchManager_Choose : MonoBehaviour
|
||||
{
|
||||
public GridSpawner gridSpawner;
|
||||
public GridDisplaySpawner gridDisplaySpawner;
|
||||
|
||||
public System.Action<int, int> OnTap;
|
||||
|
||||
private GridTouchInput input;
|
||||
|
||||
void Start()
|
||||
{
|
||||
input = new GridTouchInput(gridSpawner, gridSpawner, gridDisplaySpawner);
|
||||
input.IgnoreCurrentTouches();
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
foreach (var t in input.Poll())
|
||||
{
|
||||
if (!t.OnCell) continue;
|
||||
|
||||
if (t.began) OnTap?.Invoke(t.x, t.y);
|
||||
gridSpawner.gridCells[t.x, t.y].FlashWhite();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user