made player prefab 2d audio again and bumped version

upm
kjjohnsen 2022-11-14 20:25:22 -05:00
parent f550e56814
commit 33780bb8de
3 changed files with 5 additions and 4 deletions

View File

@ -29,7 +29,6 @@ namespace VelNet
}
}
// Start is called before the first frame update
void Start()
{
@ -77,7 +76,7 @@ namespace VelNet
if ((offset > 1000) || (Time.time - delayStartTime) > .1f) //this seems to make the quality better
{
var temp = Mathf.Max(0, offset - 2000);
source.pitch = 1 + temp / 18000.0f; //okay to behind by 2000, but speed up real quick if by 170000
source.pitch = Mathf.Min(2,1 + temp / 18000.0f); //okay to behind by 2000. These numbers correspond to about 2x speed at a seconds behind
if (!source.isPlaying)

View File

@ -259,6 +259,8 @@ MonoBehaviour:
networkObject: {fileID: 9102273340480352682}
voiceSystem: {fileID: 0}
source: {fileID: 7756407589087806652}
bufferedAmount: 0
playedAmount: 0
--- !u!82 &7756407589087806652
AudioSource:
m_ObjectHideFlags: 0
@ -387,7 +389,7 @@ AudioSource:
m_Curve:
- serializedVersion: 3
time: 0
value: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0

View File

@ -1,7 +1,7 @@
{
"name": "edu.uga.engr.vel.velnet",
"displayName": "VelNet",
"version": "1.1.2",
"version": "1.1.3",
"unity": "2019.1",
"description": "A custom networking library for Unity.",
"keywords": [