AnneLise guidance
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user