Ejemplo n.º 1
0
    private void OnSpawn_RPC(int playerID, string avatarID, int playerGender)
    {
        this.PlayerID = playerID;

        playerAvatar.AvatarID = avatarID;
        playerAvatar.SpawnAvatarModel();
        voiceController.SetVoiceDistortion(ExperimentManager.Instance.settings.UseVoiceDistortion, (PlayerGender)playerGender);

        GetComponent <PlayerController>().OnPlayerIDUpdate(PlayerID);
    }