private void CloseAreaSelection() { currentScreen = 0; hoveredMarker.Dispose(); hoveredAreaName.Dispose(); if (currentAreaMarker != null) { currentAreaMarker.SetActive(true); } }
private IEnumerator TimeCount() { yield return(new WaitForSeconds(1f)); while (timeRemaining > -1) { timeRemaining--; tbTimeCount.Text = timeRemaining.ToString(); yield return(new WaitForSeconds(1f)); } DecideBattle(); tbTime.Dispose(); tbTimeCount.Dispose(); }