Adapt Happy Wheel to shared ITask from main
This commit is contained in:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user