SetTrackingQuestAction.cs
Code: Select all
namespace PixelCrushers.QuestMachine
{
public class SetTrackingQuestAction : QuestAction
{
public StringField questID;
public bool track;
public override string GetEditorName()
{
return (track ? "Track " : "Untrack ") + questID;
}
public override void Execute()
{
base.Execute();
var quest = QuestMachine.GetQuestInstance(questID);
if (quest != null)
{
quest.showInTrackHUD = track;
QuestMachineMessages.RefreshUIs(quest);
}
}
}
}