ProjectDDD/Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/View/Bark/TextlessBarkUI.cs

30 lines
876 B (Stored with Git LFS)
C#

// Copyright (c) Pixel Crushers. All rights reserved.
using UnityEngine;
namespace PixelCrushers.DialogueSystem
{
/// <summary>
/// A textless implementation of IBarkUI. This implementation doesn't show bark text.
/// It's useful if everything happens in a sequence instead (such as audio and animation),
/// since the Dialogue System requires some kind of a bark UI on the barker.
/// </summary>
[AddComponentMenu("")] // Use wrapper.
public class TextlessBarkUI : MonoBehaviour, IBarkUI
{
public bool isPlaying { get { return false; } }
/// <summary>
/// Barks a subtitle. In this implementation, this method doesn't actually do anything.
/// </summary>
/// <param name='subtitle'>Subtitle to bark.</param>
public void Bark(Subtitle subtitle) { }
public void Hide() { }
}
}