Audio Source Changes

This commit is contained in:
pelpanagiotis
2026-01-10 23:46:09 +02:00
parent 7ab01263a1
commit 9df38fd3b2
34 changed files with 78010 additions and 242491 deletions

View File

@@ -0,0 +1,22 @@
using UnityEngine;
public class BackgroundMusicManager : MonoBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
var backgroundMusicAudioSource = GetComponent<AudioSource>();
backgroundMusicAudioSource.Play();
Debug.Log("Audio playing: " + backgroundMusicAudioSource.isPlaying);
Debug.Log("Volume: " + backgroundMusicAudioSource.volume);
Debug.Log("Clip: " + backgroundMusicAudioSource.clip);
}
// Update is called once per frame
void Update()
{
}
}