Added all the other GhostSystem Scripts

This commit is contained in:
Thorbjoern
2025-05-26 01:23:52 +02:00
parent e5bca03433
commit 3ec28d4bc5
30 changed files with 1638 additions and 149 deletions
+44
View File
@@ -0,0 +1,44 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DateSelector : MonoBehaviour
{
public int selectedYear;
public int selectedMonth;
public int selectedDay;
public int selectedHour;
public int selectedMinute;
public void SetYear(int yearIndex)
{
selectedYear = yearIndex; // Achtung: ggf. +Offset je nach Dropdown-Inhalt
}
public void SetMonth(int monthIndex)
{
selectedMonth = monthIndex + 1; // Januar = 0 in Dropdown → Monat = 1
}
public void SetDay(int dayIndex)
{
selectedDay = dayIndex + 1; // 131
}
public void SetHour(int hourIndex)
{
selectedHour = hourIndex; // 023
}
public void SetMinute(int minuteIndex)
{
selectedMinute = minuteIndex; // 059
}
public DateTime selectedDateTime()
{
DateTime dateAndTime = new DateTime(selectedYear, selectedMonth, selectedDay, selectedHour, selectedMinute, 0, DateTimeKind.Utc);
return dateAndTime;
}
}