Adapt Happy Wheel to shared ITask from main

This commit is contained in:
gravitrax-bublina
2026-05-17 12:07:41 +02:00
parent 6d660f5d89
commit d2e3adbacc
7 changed files with 49 additions and 28 deletions

View File

@@ -11,10 +11,30 @@ public class TimingWheelShooter : MonoBehaviour, ITask
[SerializeField] private TaskType taskType = TaskType.Task;
[SerializeField] private Vector2 taskLocation = Vector2.zero;
public string TaskID => taskID;
public TaskType TaskType => taskType;
public string TaskName => taskName;
public (double, double) TaskLocation => (taskLocation.x, taskLocation.y);
public string TaskID
{
get => taskID;
set => taskID = value;
}
public TaskType TaskType
{
get => taskType;
set => taskType = value;
}
public string TaskName
{
get => taskName;
set => taskName = value;
}
public (double, double) TaskLocation
{
get => (taskLocation.x, taskLocation.y);
set => taskLocation = new Vector2((float)value.Item1, (float)value.Item2);
}
public bool IsCompleted { get; private set; }
[Header("Wheel")]