Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 public void Player1Choose()
 {
     PlayersType = (TYPE_PLAYERNAMES)i;
     PlayerPrefs.SetString("Player1Names", Names[i]);
 }