Hello guys first of all Im pretty noob about scripting and I want to give some delay to my button Im trying to make an incremention game like adventure capitalist and I want to give different delays to button and then with some upgrades those delay gonna be reduced but I couldn’t make that delay thing here’s my code
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using System.Collections.Generic;
public class MoneyClick : MonoBehaviour {
public Text moneyDisplay;
public int money = 0;
public int moneyperClick = 1;
void Start()
{
Invoke("ClickDelayMoney", 5);
}
void ClickDelayMoney()
{
moneyDisplay.text = "Total Money: " + money;
}
public void Clicked()
{
money += moneyperClick;
}
}
and also how can I show the progress on my button? (I saw some posts about delay but I couldn’t do it with those posts)