using System.Collections; using System.Collections.Generic; using UnityEngine; public enum TaskHardship { Easy, Normal, Classic, Medium, Hard, Impossible } public class Task : MonoBehaviour { [SerializeField] public int id; public int Id { get { return id; } set { id = value; } } [SerializeField] public string title; public string Title { get { return title; } set { title = value; } } [SerializeField] public string description; public string Description { get { return description; } set { description = value; } } [SerializeField] public TaskHardship hardnessLevel; public Task(int _id) { id = _id; } public Task(int _id, string _title, string _description, TaskHardship _hardnessLevel) { this.id = _id; this.title = _title; this.description = _description; this.hardnessLevel = _hardnessLevel; } }