Added a custom cursor
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user