AnneLise guidance

This commit is contained in:
2025-10-17 16:15:43 +02:00
parent c3c9fd95a4
commit 594a9815cc
51 changed files with 1479 additions and 168 deletions

View File

@@ -2,12 +2,15 @@ using Input;
using Pixelplacement;
using System.Collections;
using UnityEngine;
using UnityEngine.Audio;
using UnityEngine.Events;
using static Input.PlayerTouchController;
public class TakePhotoState : State
{
public AudioSource audioPlayer;
public AudioResource clipToPlay;
public Transform playerTargetObject;
private GameObject playerCharacter;
private PlayerTouchController playerTouchController;
@@ -38,4 +41,10 @@ public class TakePhotoState : State
GetComponent<Animator>().SetTrigger("TakePhoto");
playerTouchController.OnArrivedAtTarget -= PlayerHasArrived;
}
public void PlayPhotoSoundBite()
{
audioPlayer.resource = clipToPlay;
audioPlayer.Play();
}
}