public void StartFishing() { if (bFishing) { GetFishing(Random.Range(1, 100)); } else { delayTime.color = Color.red; DelayAct.DAct(() => { delayTime.color = Color.black; }, 0.5f); } }
public void Buy() { if (Stat.d[eStat.money].Value >= item.Value.price) { Stat.d[eStat.money].Value -= item.Value.price; DB.IItems[item.Value.stat].Add(mslotNumber); Sold(); } else { price.color = Color.red; DelayAct.DAct(() => { price.color = Color.black; }, 0.5f); } }
private void Awake() { instance = this; }