Skip to content

Commit

Permalink
Decrease taps/swipes for max stack
Browse files Browse the repository at this point in the history
  • Loading branch information
berichan committed Apr 14, 2021
1 parent c1f0671 commit 8c56547
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ACNHMS_Source/Assets/Scripts/ACNHMS/UI_SetControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

public class UI_SetControl : MonoBehaviour
{
private int MAXSTACKSTAPSNEEDED = 4;
private int MAXSTACKSTAPSNEEDED = 2;
private float MAXSTACKSECONDSALIVE = 1f;

public InputField FCount;
Expand Down Expand Up @@ -70,7 +70,12 @@ private void Update()
{
maxStackIntervalTimer -= Time.deltaTime;
MaxCountTapsText.gameObject.SetActive(true);
MaxCountTapsText.text = string.Format("Max stack: {0} taps", MAXSTACKSTAPSNEEDED - maxStackTapCount);
#if UNITY_STANDALONE
var gesture = "clicks";
#else
var gesture = "swipes";
#endif
MaxCountTapsText.text = string.Format("Max stack: {0} {1}", MAXSTACKSTAPSNEEDED - maxStackTapCount, gesture);
if (maxStackTapCount >= MAXSTACKSTAPSNEEDED)
{
MaxStack();
Expand Down

0 comments on commit 8c56547

Please sign in to comment.