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();
}
}
}

View File

@@ -1,7 +1,6 @@
using System.Collections.Generic;
using EscapeRoomEngine.Engine.Runtime.Measurements;
using EscapeRoomEngine.Engine.Runtime.Modules.Description;
using EscapeRoomEngine.Engine.Runtime.UI.Elements;
using EscapeRoomEngine.Engine.Runtime.Utilities;
using NaughtyAttributes;
using UnityEngine;

View File

@@ -2,7 +2,7 @@ using NaughtyAttributes;
using UnityEngine;
using UnityEngine.UI;
namespace EscapeRoomEngine.Engine.Runtime.UI.Elements
namespace EscapeRoomEngine.Engine.Runtime.UI
{
/// <summary>
/// This component is responsible to change the icon of the pause button depending on the game state.

View File

@@ -3,7 +3,7 @@ using EscapeRoomEngine.Engine.Runtime.Modules.Description;
using NaughtyAttributes;
using UnityEngine;
namespace EscapeRoomEngine.Engine.Runtime.UI.Elements
namespace EscapeRoomEngine.Engine.Runtime.UI
{
/// <summary>
/// The puzzle plan UI component that displays the current puzzle plan in the game master window.

View File

@@ -5,7 +5,7 @@ using NaughtyAttributes;
using UnityEngine;
using UnityEngine.UI;
namespace EscapeRoomEngine.Engine.Runtime.UI.Elements
namespace EscapeRoomEngine.Engine.Runtime.UI
{
/// <summary>
/// An entry in the <see cref="PuzzlePlan"/> UI component that displays the name and estimated time for a puzzle.