public void ChoosePlayer() { SoundController.instance.ClickSound(); PlayersType = (TYPE_PLAYERNAMES)i; PlayerPrefs.SetString("PlayerNames", Names[i]); if (PlayerPrefs.GetString("GameMode") == "Bot") { SceneManager.LoadScene(1); } if (PlayerPrefs.GetString("GameMode") == "1vs1") { Player2ChoosePanel.gameObject.SetActive(true); Player2ChoosePanel.transform.DOMove(new Vector3(360 * Screen.width / 720, 640 * Screen.width / 720, 0), 0.555f); transform.DOMove(new Vector3(-360 * Screen.width / 720, 640 * Screen.width / 720, 0), 0.55f); } }
public void Player1Choose() { PlayersType = (TYPE_PLAYERNAMES)i; PlayerPrefs.SetString("Player1Names", Names[i]); }