Exemplo n.º 1
0
    public void CreatePlayer(string currentSelectedPlayer)
    {
        string[] words = currentSelectedPlayer.Split(' ');
        playerRef = PhotonNetwork.Instantiate(Path.Combine(words[0], words[1]), _gameModeManager.FindSpawnPosition(currentSelectedTeam), Quaternion.identity);
        PlayerController pc = playerRef.GetComponent <PlayerController>();

        pc.AssignTeam(currentSelectedTeam);
        charPickScreen.SetActive(false);
    }