Exemple #1
0
    // 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);
 }
Exemple #3
0
 private static void UpdateTimer()
 {
     RealTimer.Update(Time.unscaledDeltaTime);
     ScaledTimer.Update(Time.deltaTime);
 }
Exemple #4
0
 public void Tick()
 {
     _promiseTimer.Update(Time.deltaTime);
 }