IEnumerator Hide(bool destroy) { yield return(new WaitForSeconds(7)); while (Alpha.alpha > 0) { Alpha.alpha -= Time.deltaTime; yield return(new WaitForEndOfFrame()); } if (destroy) { Destroy(gameObject); } else { gameObject.SetActive(false); KillFeed.LocalDisplayDone(); } }