Ejemplo n.º 1
0
    IEnumerator CoSplashScreen()
    {
        fadeScreen.FadeToBlack();
        ClearScreen();
        cameraman.backgroundColor = Color.white;
        yield return(yieldInstruction03);

        TurnOn(splashScreen.gameObject);
        fadeScreen.FadeToClear();

        yield return(new WaitForSeconds(2f));

        PressStartScreen();
    }
Ejemplo n.º 2
0
    IEnumerator OnTriggerEnter2D(Collider2D other)
    {
        if (!isLocked)
        {
            if (other.gameObject.tag == "Player")
            {
                gameObject.GetComponents <AudioSource>()[0].Play();
                ScreenFader sf = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader> ();

                yield return(StartCoroutine(sf.FadeToBlack()));

                if (fairy != null)
                {
                    fairy.gameObject.transform.position = new Vector2(warpTarget.transform.position.x + xOffset, warpTarget.transform.position.y + yOffset);
                }

                other.gameObject.transform.position = new Vector2(warpTarget.transform.position.x + xOffset, warpTarget.transform.position.y + yOffset);

                yield return(StartCoroutine(sf.FadeToClear()));

                other.gameObject.GetComponent <PlayerController>().currRoom = toRoom;
            }
            if (bossRoom)
            {
                for (int i = 0; i < activators.Length; i++)
                {
                    activators[i].SetActive(!activators[i].activeSelf);
                }
                other.gameObject.GetComponent <PlayerController>().GeneralMusic = activators[2];
            }
        }
    }
Ejemplo n.º 3
0
    IEnumerator OnTriggerEnter2D(Collider2D other)
    {
        Debug.Log("fading out!!!");

        GameObject gobj = GameObject.FindGameObjectWithTag("ScreenFader");

        if (gobj == null)
        {
            Debug.Log("no gameobject tagged");
        }
        ScreenFader sf = gobj.GetComponent <ScreenFader> ();

        if (sf == null)
        {
            Debug.Log("no screen fader found by tag");
        }

        yield return(StartCoroutine(sf.FadeToBlack()));

        other.gameObject.transform.position = warpTarget.position;
        Camera.main.transform.position      = warpTarget.position;

        Debug.Log("fading in !!!");
        yield return(StartCoroutine(sf.FadeToClear()));

        Debug.Log("Transition complete.");
    }
Ejemplo n.º 4
0
    //Concertar amanhã!!
    IEnumerator OnTriggerEnter2D(Collider2D other)
    {
        print("voce entrou!");
        infinito = true;
        while (infinito == true)
        {
            if (infinito == false)
            {
                break;
            }
            yield return(new WaitForSeconds(0.5f));

            random = Random.Range(0, 100);
            if (random <= 4)
            {
                gatilhoParaBatalha.GetComponent <GatilhoCompartilhado> ().falaTrigger = true;                //jogador fica parado

                // transição para batalha
                ScreenFader sf = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader> ();

                yield return(StartCoroutine(sf.FadeToBlack()));

                batalha.SetActive(true);
                gatilhoParaBatalha.GetComponent <GatilhoCompartilhado> ().battleTrigger = true;

                yield return(StartCoroutine(sf.FadeToClear()));

                while (gatilhoParaBatalha.GetComponent <GatilhoCompartilhado> ().fechou == false)
                {
                    yield return(new WaitForSeconds(0.5f));
                }
            }
        }
    }
Ejemplo n.º 5
0
    public Transform warpTarget;     // Transform


    IEnumerator OnTriggerEnter2D(Collider2D other)    //other
    {
        Debug.Log("An object collided.");

        ScreenFader sf = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader>();

        Debug.Log("fade out");

        // yield return StartCoroutine(sf.FadeToBlack());

        Debug.Log("player position");
        if (other.gameObject.name == "Player")              //
        {
            yield return(StartCoroutine(sf.FadeToBlack())); //

            other.gameObject.transform.position = warpTarget.position;
            Camera.main.transform.position      = warpTarget.position;
            yield return(StartCoroutine(sf.FadeToClear())); //
        }

        /* if (player.gameObject.name == "Player") // new warp?
         * {
         *  // ScreenFader sf = GameObject.FindGameObjectWithTag("Fader").GetComponent<ScreenFader>();
         *   player.gameObject.transform.position = warpTarget.position;
         *   Camera.main.transform.position = warpTarget.position;
         *   yield return StartCoroutine(sf.FadeToBlack());
         *
         *
         *   yield return StartCoroutine(sf.FadeToClear());
         * }*/

        // yield return StartCoroutine (sf.FadeToClear());

        Debug.Log("fade in");
    }
Ejemplo n.º 6
0
    IEnumerator warptotarget()
    {
        Debug.Log("WARPING");
        istriggered = false;
        load        = false;
        load2       = false;

        ScreenFader sf = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader>();


        yield return(StartCoroutine(sf.FadeToBlack()));

        dMan.background.gameObject.SetActive(false);
        thePlayer.gameObject.transform.position = pwarptarget.position;

        thePlayer.anim.SetFloat("LastMoveX", 0f);
        thePlayer.anim.SetFloat("LastMoveY", 1f);

        yield return(StartCoroutine(sf.FadeToClear()));

        istriggered = false;

        load  = false;
        load2 = false;
        qmp.questCompleted();
    }
Ejemplo n.º 7
0
    // AnandaCoord = Warp.Location; set in app

    IEnumerator OnTriggerEnter2D(Collider2D other)
    {
        if (other.tag == "Player")
        {
            // Stops the player's movement
            playerAnim.SetBool("bIsWalking", false);
            player.GetComponent <Rigidbody2D>().velocity = new Vector2(0, 0);
            player.bStopPlayerMovement = true;
            touches.UnpressedAllArrows();

            // Fade out
            StartCoroutine(sFader.FadeToBlack());

            yield return(new WaitForSeconds(1.0f));

            cFollow.currentCoords = (CameraFollow.AnandaCoords)AnandaCoord;
            other.gameObject.transform.position = warpTarget.position;
            Camera.main.transform.position      = warpTarget.position;

            // Fade in
            StartCoroutine(sFader.FadeToClear());

            yield return(new WaitForSeconds(1.0f));

            if (areaAni)
            {
                areaAni.CheckAreaToAnimate();
            }

            player.bStopPlayerMovement = false;
        }
    }
Ejemplo n.º 8
0
    IEnumerator OnTriggerEnter2D(Collider2D other)
    {
        Debug.Log("An object collided");

        //Screen fader
        ScreenFader sf = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader> ();

        Debug.Log("Pre fade out");

        //Tentative de pause
        //Time.timeScale = 0f;

        //Première animation du fondu d'écran
        yield return(StartCoroutine(sf.FadeToBlack()));

        //Le joueur se déplace jusqu'à la nouvelle cible
        Debug.Log("Update player position");

        if (other.gameObject.tag == "Player")
        {
            other.gameObject.transform.position = warpTarget.position;
            Camera.main.transform.position      = warpTarget.position;
        }

        //Dernière animation du fondu d'écran
        yield return(StartCoroutine(sf.FadeToClear()));

        //Tentative de dépausage
        //Time.timeScale = 1f;

        Debug.Log("Fade in complete");
    }
Ejemplo n.º 9
0
    IEnumerator OnTriggerEnter2D(Collider2D other)
    {
        aMan.AreaCode = AreaNumber;
        Warping       = true;
        Debug.Log("Warp2");
        ScreenFader sf = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader>();

        yield return(StartCoroutine(sf.FadeToBlack()));

        other.gameObject.transform.position = warpTarget.position;
        Camera.main.transform.position      = warpTarget.position;
        yield return(StartCoroutine(sf.FadeToClear()));

        Warping = false;
        Debug.Log("Warp3");



        if (other.gameObject.name == "Male1" && inRange == false == false)
        {
            /*            if (gameObject.CompareTag("W0"))
             *          {
             *              AreaNumber = 0;
             *          }
             *          if (gameObject.CompareTag("W1"))
             *          {
             *              AreaNumber = 1;
             *          }
             *          if (gameObject.CompareTag("W2"))
             *          {
             *              AreaNumber = 2;
             *          }
             *          if (gameObject.CompareTag("W3"))
             *          {
             *              AreaNumber = 3;
             *          }
             *          if (gameObject.CompareTag("W4"))
             *          {
             *              AreaNumber = 4;
             *          }
             *          if (gameObject.CompareTag("W5"))
             *          {
             *              AreaNumber = 5;
             *          }
             *          if (gameObject.CompareTag("W6"))
             *          {
             *              AreaNumber = 5;
             *          }
             *          if (gameObject.CompareTag("W7"))
             *          {
             *              AreaNumber = 7;
             *          }*/

            inRange       = true;
            aMan.AreaCode = 4;
            aMan.AreaCode = AreaNumber;
        }
    }
Ejemplo n.º 10
0
    IEnumerator OnTriggerEnter2D(Collider2D other)
    {
        ScreenFader sf = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader>();

        yield return(StartCoroutine(sf.FadeToBlack()));

        SceneManager.LoadScene(sceneName: SceneName);
        yield return(StartCoroutine(sf.FadeToClear()));
    }
Ejemplo n.º 11
0
    IEnumerator OnTriggerEnter2D(Collider2D other)
    {
        ScreenFader sf = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader>();

        yield return(StartCoroutine(sf.FadeToBlack()));

        other.gameObject.transform.position = warpTarget.position;
        Camera.main.transform.position      = warpTarget.position;
        yield return(StartCoroutine(sf.FadeToClear()));
    }
Ejemplo n.º 12
0
    IEnumerator OnTriggerEnter2D(Collider2D col)
    {
        sf = GameObject.FindGameObjectWithTag ("Fader").GetComponent<ScreenFader> ();

        player.StopPlayer ();
        yield return StartCoroutine(sf.FadeToBlack ());
        player.StopPlayer ();
        col.gameObject.transform.position = warpTarget.transform.position;
        Camera.main.transform.position = warpTarget.transform.position;
        yield return StartCoroutine(sf.FadeToClear ());
    }
Ejemplo n.º 13
0
 void Update()
 {
     gameManager.updateHealth(currentHealth);
     if (damage)
     {
         spriteRender.color = screenFadeColor;
     }
     else
     {
         spriteRender.color = Color.Lerp(spriteRender.color, Color.white, screenFadeSpeed * Time.deltaTime);
     }
     damage = false;
     if (isDead)
     {
         fader.FadeToDark();
         Physics2D.IgnoreLayerCollision(PLAYER_LAYER_MASK, ENEMY_LAYER_MASK, true);
         playerTransform.position = Vector2.Lerp(playerTransform.position,
                                                 new Vector2(playerTransform.position.x, playerTransform.position.y - 100f), 0.01f * Time.deltaTime);
         playerRdb2.isKinematic = true;
         if (!CameraUtility.IsRendererInFrustum(boxCollider, cam))
         {
             isDestroyed = true;
             Destroy(gameObject);
         }
     }
     if (!isDead)
     {
         if (temp1 != null && !level1Manager.goNextRound)
         {
             fader.FadeToClear();
         }
         if (temp2 != null && !level2Manager.goNextRound)
         {
             fader.FadeToClear();
         }
         if (temp3 != null && !level3Manager.goNextRound)
         {
             fader.FadeToClear();
         }
     }
 }
Ejemplo n.º 14
0
    IEnumerator OnTriggerEnter2D(Collider2D target)
    //void OnTriggerEnter2D(Collider2D target)
    {
        if (target.transform.CompareTag("Player"))
        {
            if (locked)
            {
                if (hourInt < 18 && hourInt > 6)
                {
                    myPlayerMovement.HandleMovement(Vector2.zero);
                    myPlayerMovement.enabled = false;
                    if (myPlayerInventory.IsOpen)
                    {
                        myPlayerInventory.OpenCloseInventory();
                    }

                    ScreenFader sf = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader>();

                    yield return(StartCoroutine(sf.FadeToBlack()));

                    target.gameObject.transform.position = warpTarget.position;
                    Camera.main.transform.position       = warpTarget.position;
                    yield return(StartCoroutine(sf.FadeToClear()));

                    myPlayerMovement.enabled = true;
                }
                else if (hourInt >= 18 || hourInt <= 6)
                {
                    textBox.SetActive(true);
                    typewriter.GetComponent <Examine>().RecieveText(examinedObject);
                }
            }
            else if (!locked)
            {
                myPlayerMovement.HandleMovement(Vector2.zero);
                myPlayerMovement.enabled = false;
                if (myPlayerInventory.IsOpen)
                {
                    myPlayerInventory.OpenCloseInventory();
                }

                ScreenFader sf = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader>();

                yield return(StartCoroutine(sf.FadeToBlack()));

                target.gameObject.transform.position = warpTarget.position;
                Camera.main.transform.position       = warpTarget.position;
                yield return(StartCoroutine(sf.FadeToClear()));

                myPlayerMovement.enabled = true;
            }
        }
    }
Ejemplo n.º 15
0
    IEnumerator OnTriggerEnter2D(Collider2D collision)
    {
        ScreenFader sf = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader>();

        yield return(StartCoroutine(sf.FadeToBlack()));

        if (collision.gameObject.name == "Player")
        {
            SceneManager.LoadScene(levelToLoad);
            yield return(StartCoroutine(sf.FadeToClear()));
        }
    }
    public Transform wrapTarget;     //get the position of object

//void OnTriggerEnter2D(Collider2D other){
    IEnumerator OnTriggerEnter2D(Collider2D other)
    {
        if (other.name == "player")
        {
            ScreenFader sf = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader> ();
            yield return(StartCoroutine(sf.FadeToBlack()));

            other.gameObject.transform.position = wrapTarget.position;
            Camera.main.transform.position      = wrapTarget.position;
//Fade in and Fade out animation handler
            yield return(StartCoroutine(sf.FadeToClear()));
        }
    }
Ejemplo n.º 17
0
    public IEnumerator TitleOff()
    {
        ScreenFader sf = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader>();

        yield return(new WaitForSeconds(turnOffTime));

        yield return(StartCoroutine(sf.FadeToBlack()));

        child.SetActive(false);
        yield return(StartCoroutine(sf.FadeToClear()));

        camera.GetComponent <AudioSource>().Play();
    }
Ejemplo n.º 18
0
    public IEnumerator screenfader2()
    {
        dMAn.dBox.SetActive(false);
        dMAn.iText.SetActive(false);
        dMAn.dialogActive = false;
        ScreenFader sf = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader> ();

        yield return(StartCoroutine(sf.FadetoBlack()));

        Player.transform.position      = warpTarget2.position;
        Camera.main.transform.position = warpTarget.position;
        yield return(StartCoroutine(sf.FadeToClear()));
    }
Ejemplo n.º 19
0
    IEnumerator OnTriggerEnter2D(Collider2D other)
    {
        sf = GameObject.FindGameObjectWithTag("fader").GetComponent<ScreenFader>();

        if (other.gameObject.name == "Hero")
        {
            yield return StartCoroutine(sf.FadeToBlack());
            hero.transform.position = enter.position;
            Camera.main.transform.position = enter.position;
        }
        //Debug.Log("an object has warped");

        yield return StartCoroutine(sf.FadeToClear());
    }
Ejemplo n.º 20
0
    IEnumerator OnTriggerEnter2D(Collider2D other)
    {
        ScreenFader sf = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader>();
        PlayerMove  pm = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMove>();

        pm.isWaiting = true;
        yield return(StartCoroutine(sf.FadeToBlack()));

        other.gameObject.transform.position = teleportTo.position;
        Camera.main.transform.position      = teleportTo.position;

        pm.isWaiting = false;
        yield return(StartCoroutine(sf.FadeToClear()));
    }
Ejemplo n.º 21
0
    IEnumerator restoretownstate()
    {
        questCompleted();
        ScreenFader sf = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader>();


        yield return(StartCoroutine(sf.FadeToBlack()));


        npCont.set1State(true);
        npCont.set2State(false);
        mc.switchTrack(1);
        yield return(StartCoroutine(sf.FadeToClear()));
    }
Ejemplo n.º 22
0
    IEnumerator OnTriggerEnter2D(Collider2D other)
    {
        ScreenFader sf = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader> ();

        // Debug.Log ("An object.");
        if (other.gameObject.name == "Player")
        {
            yield return(StartCoroutine(sf.FadeToBlack()));

            other.gameObject.transform.position = warpTarget.position;

            yield return(StartCoroutine(sf.FadeToClear()));
        }
    }
Ejemplo n.º 23
0
    public IEnumerator OnTriggerEnter2D(Collider2D collison)
    {
        ScreenFader sf = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader> ();

        if (collison.tag != "Bullet")
        {
            yield return(StartCoroutine(sf.FadeToBlack()));

            Debug.Log("COLLIDED");
            collison.gameObject.transform.position = warpTarget.position;
            Camera.main.transform.position         = warpTarget.position;

            yield return(StartCoroutine(sf.FadeToClear()));
        }
    }
Ejemplo n.º 24
0
    IEnumerator WarpPlayer()
    {
        PlayerInteractController.Instance.ShowInteractNotifier(false);
        ScreenFader.img.enabled = true;
        SoundDatabase.PlaySound(16);
        PlayerMovement.cantMove = true;
        yield return(StartCoroutine(ScreenFader.FadeToBlack()));

        CurrentMap.Instance.WarpPlayerToMap(goToMapName);
        yield return(StartCoroutine(ScreenFader.FadeToClear()));

        PlayerMovement.cantMove = false;
        ScreenFader.img.enabled = false;
        Destroy(CurrentMap.Instance.area.GetChild(0).gameObject);
        //PlayerInteractController.Instance.ShowInteractNotifier(false);
    }
Ejemplo n.º 25
0
    private IEnumerator OnTriggerEnter2D(Collider2D other)
    {
        if (other.gameObject.name == "Player")
        {
            FindObjectOfType <WarpManager>().isWarping = true;
            ScreenFader sf = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader>();

            yield return(StartCoroutine(sf.FadeToBlack()));

            other.gameObject.transform.position = warpTarget.position;
            Camera.main.transform.position      = warpTarget.position;

            yield return(StartCoroutine(sf.FadeToClear()));

            FindObjectOfType <WarpManager>().isWarping = false;
        }
    }
Ejemplo n.º 26
0
    public IEnumerator WarpTo(Vector3 location, string locationName)

    {
        // Start fading to black
        yield return(StartCoroutine(sf.FadeToBlack()));

        // Warping begins
        Debug.Log("Going to X: " + location.x + " and Y: " + location.y);
        other.gameObject.transform.position = location;
        Camera.main.transform.position      = location;
        LocationTextScript script = GameObject.FindObjectOfType <LocationTextScript>();

        script.UpdateLocationText(locationName);

        // Start fading to clear
        yield return(StartCoroutine(sf.FadeToClear()));
    }
Ejemplo n.º 27
0
        public override void Operate(Character character)
        {
            var targetWarp = FindTargetWarp();

            if (targetWarp == null)
            {
                Debug.LogError("Target warp wasn't found");
                return;
            }

            ScreenFader.SetToBlack();
            ScreenFader.FadeToClear();
            var target = Iso.MapToIso(targetWarp.transform.position);

            character.InstantMove(target);
            character.GoTo(target + new Vector3(targetWarp.info.exitWalkX, targetWarp.info.exitWalkY));
        }
Ejemplo n.º 28
0
    IEnumerator OnTriggerEnter2D(Collider2D other)
    {
        //call ScreenFader object
        ScreenFader sf = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader> ();

        //Call FadeToBlack when colliding with warp exit
        yield return(StartCoroutine(sf.FadeToBlack()));

        Debug.Log("An object Collided.");

        //Move player and camera to warp exit
        other.gameObject.transform.position = warpTarget.position;
        Camera.main.transform.position      = warpTarget.position;

        //Call FadeToClear when Player and Camera have moved
        yield return(StartCoroutine(sf.FadeToClear()));
    }
Ejemplo n.º 29
0
    public IEnumerator Grow()
    {
        ScreenFader screenFader = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader>();

        // Call FadeToBlack method and don't move on to the next line of code until method is finished
        yield return(StartCoroutine(screenFader.FadeToBlack()));

        for (int i = 0; i < farmTiles.Length; i++)
        {
            if (farmTiles[i].HasCrop())
            {
                farmTiles[i].GrowCrop();
            }
        }

        // Call FadeToClear method and don't move on to the next line of code until method is finished
        yield return(StartCoroutine(screenFader.FadeToClear()));
    }
Ejemplo n.º 30
0
    IEnumerator OnTriggerEnter2D(Collider2D other)
    {
        Debug.Log("Object Collided");
        ScreenFader sf = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader>();

        Debug.Log("Pre fade out");

        yield return(StartCoroutine(sf.FadeToBlack()));

        Debug.Log("Update Player Pos");

        other.gameObject.transform.position = warpTarget.position;
        Camera.main.transform.position      = warpTarget.position;

        yield return(StartCoroutine(sf.FadeToClear()));

        Debug.Log("Fade In Complete");
    }
Ejemplo n.º 31
0
    public static IEnumerator BeginDinner(Room room, TwineStory dinnerStory)
    {
        sfxManager.play("DinnerChime");
        loveInterestControls.hideLoveInterests();

        screenFader.setFadeTime(0.75f);
        screenFader.FadeToBlack();

        while (!screenFader.finishedFade)
        {
            yield return(new WaitForSeconds(0.1f));
        }

        GameManager.StartConversation(dinnerStory);
        screenFader.FadeToClear();

        LoadRoom(room);

        dayControls.endOfDay = true;
    }
    IEnumerator OnTriggerEnter2D(Collider2D other)
    {
        if (other.gameObject.tag == "Player")
        {
            ScreenFader sf = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader>();

            GameObject.FindGameObjectWithTag("Player").GetComponent <Animator>().enabled        = false;
            GameObject.FindGameObjectWithTag("Player").GetComponent <Rigidbody2D>().constraints = RigidbodyConstraints2D.FreezeAll;
            //RigidbodyConstraints.FreezeRotationX | RigidbodyConstraints.FreezeRotationZ;
            yield return(StartCoroutine(sf.FadeToBlack()));

            Application.LoadLevel(LevelToLoad);
            yield return(StartCoroutine(sf.FadeToClear()));

            GameObject.FindGameObjectWithTag("Player").GetComponent <Animator>().enabled        = true;
            GameObject.FindGameObjectWithTag("Player").GetComponent <Rigidbody2D>().constraints = RigidbodyConstraints2D.None;
            GameObject.FindGameObjectWithTag("Player").GetComponent <Rigidbody2D>().constraints = RigidbodyConstraints2D.FreezeRotation;
        }
    }
Ejemplo n.º 33
0
	// Use this for initialization
	void Start ()
    {
        fader = FindObjectOfType<ScreenFader>();
        Debug.Log(fader);
        fader.FadeToClear();

        tempStateHolder = GameObject.Find ("TempState");
		if (tempStateHolder) {
			tempState = tempStateHolder.GetComponent<TempState> ();
		}
		if (tempState.state ["Winner"] == "Player") {
            results.text = "PLAYER <b>1</b> VICTORY! (>^__^)>";

            p1UI.displayText.text = "1st place: Player 1!";
            p2UI.displayText.text = "2nd place: Player 2";
		} else if (tempState.state ["Winner"] == "Player 2") {
            results.text = "PLAYER <b>2</b> VICTORY! (>^__^)>";

            p1UI.displayText.text = "2nd place: Player 1";
            p2UI.displayText.text = "1st place: Player 2!";
        } else {
			results.text = "DRAW";
		}
	}