25 lines
590 B
C#
25 lines
590 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
[CreateAssetMenu(fileName = "New Task", menuName = "Task")]
|
|
public class Task : ScriptableObject
|
|
{
|
|
[Header("Identification")]
|
|
public string taskName;
|
|
public string taskID;
|
|
public string description;
|
|
[Header("Requirements")]
|
|
public int deadline; //in days from started
|
|
public bool completed;
|
|
public InventoryManager.ItemAmount[] itemRequirements;
|
|
public Enemy[] enemyRequirements;
|
|
[Header("Rewards")]
|
|
public InventoryManager.ItemAmount[] itemRewards;
|
|
public int moneyReward;
|
|
|
|
public void FailTask()
|
|
{
|
|
|
|
}
|
|
}
|