20 lines
431 B
C#
20 lines
431 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
[CreateAssetMenu(fileName = "New Task", menuName = "Task")]
|
|
public class Task : ScriptableObject
|
|
{
|
|
[Serializable]
|
|
public class ItemRequirment
|
|
{
|
|
public Item item;
|
|
public int amount;
|
|
}
|
|
public string taskName;
|
|
public string description;
|
|
public bool completed;
|
|
public ItemRequirment[] requirements;
|
|
public Dictionary<Item, int> itemProgress = new();
|
|
|
|
}
|