Exemplo n.º 1
0
    public void Player2Spawner()
    {
        CharacterSelect characterselect = GameObject.Find("Character Select").GetComponent <CharacterSelect>();

        characterselect.P2Lock = false;
        if (P2Char1 == true)
        {
            characterselect.P2Char1();
        }
        if (P2Char2 == true)
        {
            characterselect.P2Char2();
        }
        if (P2Char3 == true)
        {
            characterselect.P2Char3();
        }
        healthBar2.GetComponent <RectTransform>().sizeDelta = new Vector3(590, 50); // Sets player2 healthbar back to max (Michael)
    }