40 lines
798 B
C#
40 lines
798 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class NPCQuest : MonoBehaviour
|
|
{
|
|
[SerializeField] public Task quest;
|
|
public Task Quest
|
|
{
|
|
get { return quest; }
|
|
set { quest = value; }
|
|
}
|
|
|
|
[SerializeField] private bool isTaskAccepted = false;
|
|
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
this.Quest = new Task(1, "Help the Lumberjack", "Find his axe in the forest and bring it back to him.", TaskHardship.Easy);
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
|
|
public Task AcceptTask()
|
|
{
|
|
this.isTaskAccepted = true;
|
|
|
|
return this.Quest;
|
|
}
|
|
|
|
public bool IsTaskAccepted()
|
|
{
|
|
return this.isTaskAccepted;
|
|
}
|
|
}
|