Ejemplo n.º 1
0
    private void FirstUIUpdate()
    {
        playerOneGamerTagDisplay_Ref.text = gameStateMachine_Ref.PlayerCharacterArray[0].MyGamerTag;
        playerTwoGamerTagDisplay_Ref.text = gameStateMachine_Ref.PlayerCharacterArray[1].MyGamerTag;

        playerOneInfo_Ref.playerNameDisplay.text = gameStateMachine_Ref.PlayerCharacterArray[0].MyGamerTag;
        playerTwoInfo_Ref.playerNameDisplay.text = gameStateMachine_Ref.PlayerCharacterArray[1].MyGamerTag;

        playerOneIntroTauntImage_Ref.sprite = gameStateMachine_Ref.PlayerCharacterArray[0].MyPicture;
        playerTwoIntroTauntImage_Ref.sprite = gameStateMachine_Ref.PlayerCharacterArray[1].MyPicture;

        if (playerOnePrintText_Ref != null)
        {
            playerOnePrintText_Ref.ClearMyString();
        }

        playerOnePrintText_Ref.myString = gameStateMachine_Ref.PlayerCharacterArray[0].MyIntroPhrase;
        playerOnePrintText_Ref.MakeCharArray();

        PlayerTwoPrintText_Ref.ClearMyString();

        playerTwoPrintText_Ref.myString = gameStateMachine_Ref.PlayerCharacterArray[1].MyIntroPhrase;
        PlayerTwoPrintText_Ref.MakeCharArray();

        UpdatePlayerStatus(0);
    }
Ejemplo n.º 2
0
    public void UpdatePlayerDisplays()
    {
        if (playerOneInfo_Ref != null && playerTwoInfo_Ref != null)
        {
            playerOneInfo_Ref.playerNameDisplay.text = gameStateMachine_Ref.PlayerCharacterArray[0].MyGamerTag;
            playerTwoInfo_Ref.playerNameDisplay.text = gameStateMachine_Ref.PlayerCharacterArray[1].MyGamerTag;
        }

        if (gameStateMachine_Ref != null)
        {
            playerOneIntroTauntImage_Ref.sprite = gameStateMachine_Ref.PlayerCharacterArray[0].MyPicture;
            playerTwoIntroTauntImage_Ref.sprite = gameStateMachine_Ref.PlayerCharacterArray[1].MyPicture;
            playerOneGamerTagDisplay_Ref.text   = gameStateMachine_Ref.PlayerCharacterArray[0].MyGamerTag;
            playerTwoGamerTagDisplay_Ref.text   = gameStateMachine_Ref.PlayerCharacterArray[1].MyGamerTag;
        }

        if (playerOnePrintText_Ref != null)
        {
            playerOnePrintText_Ref.myString = gameStateMachine_Ref.PlayerCharacterArray[0].MyIntroPhrase;
            playerOnePrintText_Ref.MakeCharArray();
            playerOnePrintText_Ref.ClearMyString();
        }

        if (playerTwoPrintText_Ref != null)
        {
            playerTwoPrintText_Ref.myString = gameStateMachine_Ref.PlayerCharacterArray[1].MyIntroPhrase;
            PlayerTwoPrintText_Ref.MakeCharArray();
            PlayerTwoPrintText_Ref.ClearMyString();
        }
    }