private IEnumerator _loginFormUpCoroutine() { yield return(new WaitForSeconds(0.5f)); AnimationAssistant.Hide(gameObject.GetComponent <CanvasGroup>()); if (PlayerPrefs.GetInt("auntificated") != 1) { AnimationAssistant.MoveLocalY(_loginForm, 0); } else { AnimationAssistant.MoveY(_loginPanel, InfoStorage.ClosedPanelPosY); } }
public void SendScore(int value) { for (var i = 0; i < transform.childCount; i++) { transform.GetChild(i).GetComponent <Image>().sprite = _inactiveStar; } for (var i = 0; i < value; i++) { transform.GetChild(i).GetComponent <Image>().sprite = _activeStar; } var score = new Score(value, InfoStorage.DateTimeToUnixTimeStamp(DateTime.Now.Date)); var dtnow = DateTime.Now; PlayerPrefs.SetInt(dtnow.Year + "." + dtnow.Month + "." + dtnow.Day, value); AnimationAssistant.Hide(_cg); StartCoroutine(_sendScoreCoroutine(score)); }
public void DecreaseZoomAndUpdate() { if (_updateLock) { return; } _updateLock = true; if (_zoom == MinZoom + 1) { AnimationAssistant.Hide(_minus); } if (!AnimationAssistant.IsShown(_plus)) { AnimationAssistant.Show(_plus); } _zoom--; _refreshMap(); }
private void _hide() { AnimationAssistant.Hide(_canvasGroup); }