literally half of the game
This commit is contained in:
parent
1590b5faa6
commit
b842289076
77 changed files with 11904 additions and 72 deletions
17
Assets/Scripts/Task/TaskUIObject.cs
Normal file
17
Assets/Scripts/Task/TaskUIObject.cs
Normal 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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue