TaiZhouChangChu/Assets/Script/LH/TaskControl.cs

45 lines
804 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[Serializable]
public struct TaskContent
{
public string TaskName;
public float TaskScore;
public bool TaskState;
}
public class TaskControl : MonoBehaviour
{
public static TaskControl instance;
public List<string> allTaskName = new List<string>();
public List<TaskContent> allTask = new List<TaskContent>();
public Dictionary<string, TaskContent> currentTasks = new Dictionary<string, TaskContent>();
void Awake()
{
instance = this;
}
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public void AddToTaskList()
{
}
}