Added a custom cursor

This commit is contained in:
2026-03-30 18:16:20 +01:00
parent 652df5ce01
commit d0bebb9333
4 changed files with 211 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
using PashaBibko.Pacore.Attributes;
using UnityEngine.UI;
using UnityEngine;
using Random = UnityEngine.Random;
namespace Fruitomation
{
@@ -23,12 +24,8 @@ namespace Fruitomation
Spawner = spawner;
Body2D.velocity = Random.insideUnitCircle * 2.5f;
Button.onClick.AddListener(OnPlayerClicked);
}
private void OnPlayerClicked() => TriggerDestruction();
private void Update()
{
if (!GameStateController.Is(GameState.Simulation))
@@ -48,7 +45,7 @@ namespace Fruitomation
}
}
private void TriggerDestruction()
public void TriggerDestruction()
{
MoneyController.Add((ulong)Random.Range(1, 5));