IEnumerator FadeOutRoutine(FadeCallBack fadeCallBack) { isFading = true; yield return(UIAnimator.Color(coverObj, Vector4.zero, Color.black, fadeSpeed * 2)); fadeCallBack(); }
private void Start() { gm = GameManager.Instance(); StartCoroutine(UIAnimator.Color(coverObj, Color.black, Vector4.zero, fadeSpeed)); }