20 lines
524 B
C#
20 lines
524 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using NodeCanvas.Tasks;
|
|
using NodeCanvas.Framework;
|
|
using BITKit.SubSystems;
|
|
using BITKit.SubSystems.Quest;
|
|
namespace BITKit
|
|
{
|
|
public class CompleteQuest : ActionTask
|
|
{
|
|
public BBParameter<QuestSystem.Info> quest;
|
|
protected override void OnExecute()
|
|
{
|
|
if (quest.value.state is not QuestSystem.State.Complete)
|
|
QuestSystem.Complete(quest.value);
|
|
EndAction();
|
|
}
|
|
}
|
|
} |