public IEnumerator RunEvent(GameObject o) { GameManager.instance.Paused = true; overlay.FadeIn(Color.black, 0.5f); yield return(new WaitForSeconds(0.5f)); o.transform.position = destination; o.transform.rotation = Quaternion.Euler(0, rotation, 0); yield return(new WaitForSeconds(0.1f)); overlay.FadeOut(0.5f); yield return(new WaitForSeconds(0.5f)); GameManager.instance.Paused = false; }