made player prefab 2d audio again and bumped version

main
kjjohnsen 2022-11-14 20:25:22 -05:00
parent 2f38a1a154
commit 20a8362800
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 // Start is called before the first frame update
void Start() void Start()
{ {
@ -77,7 +76,7 @@ namespace VelNet
if ((offset > 1000) || (Time.time - delayStartTime) > .1f) //this seems to make the quality better if ((offset > 1000) || (Time.time - delayStartTime) > .1f) //this seems to make the quality better
{ {
var temp = Mathf.Max(0, offset - 2000); 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) if (!source.isPlaying)

View File

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

View File

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