using EasyTalk.Nodes.Core;
using System;
using UnityEngine;
namespace EasyTalk.Nodes.Common
{
///
/// A node which provides an exit point for a dialogue.
///
[Serializable]
public class ExitNode : Node, DialogueFlowNode
{
///
/// The unique name of the exit point.
///
[SerializeField]
private string exitPointName = "";
///
/// Creates a new ExitNode.
///
public ExitNode()
{
this.name = "EXIT";
this.nodeType = NodeType.EXIT;
}
///
public NodeConnection GetFlowInput()
{
return Inputs[0];
}
///
public NodeConnection GetFlowOutput()
{
return null;
}
///
/// Gets or sets the name of the exit point.
///
public string ExitPointName
{
get { return this.exitPointName; }
set { this.exitPointName = value; }
}
}
}