public void Unhighlight(bool stopNow = false)
 {
     if (stopNow)
     {
         ContextualScreen.SwitchToDefaultPage(ScanPage);
         highlightingGems = false;
     }
     else
     {
         StopCoroutine(TryToStopHighlighting());
         StartCoroutine(TryToStopHighlighting());
     }
 }
Esempio n. 2
0
 void ResetContextualScreen()
 {
     if (!isOpen)
     {
         ContextualScreen.SwitchToDefaultPage(TrapPage);
     }
 }
    IEnumerator TryToStopHighlighting()
    {
        float startUnhighlightTime = Time.time;

        yield return(new WaitForSeconds(highlightFadeTime));

        if (startHighlightTime < startUnhighlightTime)
        {
            ContextualScreen.SwitchToDefaultPage(ScanPage);
            highlightingGems = false;
        }

        yield break;
    }
Esempio n. 4
0
 void ResetContextualScreen()
 {
     ContextualScreen.SwitchToDefaultPage(Health);
 }