// Use this for initialization void Start() { promTimer.Update(Time.deltaTime); if (closeBtn != null) { closeBtn.onClick.AddListener(() => { if (viewDoneCB != null) { //Run Daniels erase numbers from localstorage to prevent returning to the same page when coming back. browser.EvalJS("(new Array(localStorage.length)).fill(0).map((_,i)=>" + "localStorage.key(i)).filter(k=>/^\\d+$/.test(k)).forEach(k=>localStorage.removeItem(k));"); } viewDoneCB(); }); } }
private void Update() { promiseTimer.Update(Time.deltaTime); }
private static void UpdateTimer() { RealTimer.Update(Time.unscaledDeltaTime); ScaledTimer.Update(Time.deltaTime); }
public void Tick() { _promiseTimer.Update(Time.deltaTime); }