made player prefab 2d audio again and bumped version
parent
f550e56814
commit
33780bb8de
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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": [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue