public void Character_one() { manager = GameObject.FindGameObjectWithTag("GameManager").GetComponent <ManagerMenu>(); PlayerPrefs.DeleteAll(); PlayerPrefs.SetInt("CharacterOne", 1); manager.isSpawn = false; manager.SpawnCharacter(0); Debug.Log("1"); }
public void Character_tree() { sl3.setSelected = true; manager = GameObject.FindGameObjectWithTag("GameManager").GetComponent <ManagerMenu>(); PlayerPrefs.DeleteAll(); PlayerPrefs.SetInt("CharacterThree", 1); manager.isSpawn = false; manager.SpawnCharacter(2); Debug.Log("3"); }