literally half of the game

This commit is contained in:
Sylvia 2026-08-27 04:07:01 -07:00
parent 1590b5faa6
commit b842289076
77 changed files with 11904 additions and 72 deletions

View file

@ -0,0 +1,17 @@
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class TaskUIObject : MonoBehaviour
{
public Task taskToShow;
public TextMeshProUGUI taskTitle;
public Button thisButton;
public void SetTask(Task requestedTask)
{
taskToShow = requestedTask;
taskTitle.text = requestedTask.taskName;
thisButton.onClick.RemoveAllListeners();
thisButton.onClick.AddListener(() => TaskManager.instance.SetTaskUI(taskToShow)); //unsure if it should be on here or the new task ui function
}
}