AnneLise bird counter implemented

This commit is contained in:
2025-10-20 13:57:38 +02:00
parent 6e5a6c049f
commit b49bb43f79
22 changed files with 520 additions and 11 deletions

View File

@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 423ebef95a1a80540a39e097c4a2c206
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,15 +0,0 @@
using UnityEngine;
public class AnneLiseMain : MonoBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
void PlayIntroVO()
{
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: f8fad2d7a81d63b45aad87edfd322669

View File

@@ -1,35 +0,0 @@
using UnityEngine;
using UnityEngine.Audio;
using AudioSourceEvents;
using System;
using UnityEngine.Events;
public class NarratorVO : AudioSourceObserver
{
public AudioSource narratorAudioSource;
public AudioResource firstNarration;
public UnityEvent narrationFinished;
private IAudioEventSource _eventSource;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
PlayNarrationAudio();
}
void PlayNarrationAudio()
{
_eventSource = narratorAudioSource.RequestEventHandlers();
_eventSource.AudioStopped += NarrationFinished;
narratorAudioSource.resource = firstNarration;
narratorAudioSource.Play();
}
private void NarrationFinished(object sender, EventArgs e)
{
narrationFinished.Invoke();
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: cb5c6632b7606ce43a0b2dbf11215dc8

Binary file not shown.

View File

@@ -0,0 +1,23 @@
fileFormatVersion: 2
guid: 2ac461fcc3f7a014ca716a4f231be004
AudioImporter:
externalObjects: {}
serializedVersion: 8
defaultSettings:
serializedVersion: 2
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
preloadAudioData: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,71 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1233149941 &5888169292782101467
AudioContainerElement:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: 1bird_{5888169292782101467}
m_AudioClip: {fileID: 8300000, guid: 2446033223f0de14bab42a40b36a5e1a, type: 3}
m_Volume: 0
m_Enabled: 1
--- !u!1307931743 &6418180475301049370
AudioRandomContainer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: birdCounterAudio
m_Volume: 0
m_Pitch: 0
m_AutomaticTriggerTime: 0
m_LoopCount: 1
m_VolumeRandomizationRange: {x: 0, y: 0}
m_PitchRandomizationRange: {x: 0, y: 0}
m_AutomaticTriggerTimeRandomizationRange: {x: 0, y: 0}
m_LoopCountRandomizationRange: {x: 0, y: 0}
m_Elements:
- {fileID: 8031590168900661445}
- {fileID: 7046197025720374664}
- {fileID: 5888169292782101467}
- {fileID: 6961595029314351120}
m_AvoidRepeatingLast: 0
m_PlaybackMode: 0
m_TriggerMode: 0
m_AutomaticTriggerMode: 1
m_LoopMode: 2
m_VolumeRandomizationEnabled: 0
m_PitchRandomizationEnabled: 0
m_AutomaticTriggerTimeRandomizationEnabled: 0
m_LoopCountRandomizationEnabled: 0
--- !u!1233149941 &6961595029314351120
AudioContainerElement:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: 0bird_{6961595029314351120}
m_AudioClip: {fileID: 8300000, guid: 1803dc83ad49a6543882628a46d5701a, type: 3}
m_Volume: 0
m_Enabled: 1
--- !u!1233149941 &7046197025720374664
AudioContainerElement:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: 2birds_{7046197025720374664}
m_AudioClip: {fileID: 8300000, guid: 86dc2e8f9a1cf7440adccad824209334, type: 3}
m_Volume: 0
m_Enabled: 1
--- !u!1233149941 &8031590168900661445
AudioContainerElement:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: 3birds_{8031590168900661445}
m_AudioClip: {fileID: 8300000, guid: 60d02b75b267d5949a36f04bb5dfe409, type: 3}
m_Volume: 0
m_Enabled: 1

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 02ff958a82d9cc6478783a0e7cd3b2b1
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 6418180475301049370
userData:
assetBundleName:
assetBundleVariant: