예제 #1
0
 public static void ActivateWinScreen()
 {
     beenTrig = true;
     foreach (GameObject obj in GameObject.FindGameObjectsWithTag("Scenery"))
     {
         SpriteRenderer spriteRenderer = obj.GetComponent <SpriteRenderer>();
         if (spriteRenderer != null)
         {
             instance.StartCoroutine(instance.FadeOutSprite(spriteRenderer));
         }
     }
     instance.RollRandomWinQuote();
     instance.StartCoroutine(instance.MoveBodyToCenter());
     instance.winText.CrossFadeAlpha(1, 1, true);
 }