//Find currently played character and spawn them again, with full health, on death public void Player1Spawner() { CharacterSelect characterselect = GameObject.Find("Character Select").GetComponent <CharacterSelect>(); characterselect.P1Lock = false; if (P1Char1 == true) { characterselect.P1Char1(); } if (P1Char2 == true) { characterselect.P1Char2(); } if (P1Char3 == true) { characterselect.P1Char3(); } healthBar1.GetComponent <RectTransform>().sizeDelta = new Vector3(590, 50); // Sets player1 healthbar back to max (Michael) }