station 46 audio and animation

This commit is contained in:
2023-05-14 21:22:58 +02:00
parent 48742e7d14
commit 8de8301205
24 changed files with 2072 additions and 32 deletions

View File

@@ -1,14 +1,22 @@
using UnityEngine;
using NaughtyAttributes;
using UnityEngine;
namespace EscapeRoomEngine.Engine.Runtime
{
public class Intro : MonoBehaviour
{
[BoxGroup("Internal")] [SerializeField] private AudioSource _sphereAudio;
public void Place(Transform placement)
{
var t = transform;
t.position = placement.position;
t.rotation = placement.rotation;
}
public void StartTalking()
{
_sphereAudio.Play();
}
}
}