Initialer Upload neues Unity-Projekt

This commit is contained in:
Daniel Ocks
2025-07-21 09:11:14 +02:00
commit eeca72985b
14558 changed files with 1508140 additions and 0 deletions

View File

@ -0,0 +1,45 @@
using UnityEngine;
using System.Collections;
using Valve.VR;
namespace Valve.VR.InteractionSystem.Sample
{
public class AmbientSound : MonoBehaviour
{
AudioSource s;
public float fadeintime;
float t;
public bool fadeblack = false;
float vol;
// Use this for initialization
void Start()
{
AudioListener.volume = 1;
s = GetComponent<AudioSource>();
s.time = Random.Range(0, s.clip.length);
if (fadeintime > 0)
t = 0;
vol = s.volume;
SteamVR_Fade.Start(Color.black, 0);
SteamVR_Fade.Start(Color.clear, 7);
}
// Update is called once per frame
void Update()
{
if (fadeintime > 0 && t < 1)
{
t += Time.deltaTime / fadeintime;
s.volume = t * vol;
}
}
}
}

View File

@ -0,0 +1,13 @@
fileFormatVersion: 2
guid: 3bca11e0534f4e742846c41cf3f1ff29
timeCreated: 1520810249
licenseType: Store
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,24 @@
fileFormatVersion: 2
guid: 3ee1fc95c2ea4134fa1e8af41ac81b01
timeCreated: 1520480857
licenseType: Store
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,24 @@
fileFormatVersion: 2
guid: 1bf411093ae4b6e46859fe07ef76d5b6
timeCreated: 1520480856
licenseType: Store
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,24 @@
fileFormatVersion: 2
guid: d9eaf2bf45acf3449ab5958696f305d3
timeCreated: 1520480857
licenseType: Store
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant: