Added password input thing

This commit is contained in:
Pasha Bibko
2026-01-27 13:02:04 +00:00
parent 10e6dab93e
commit 9417a3315e
5 changed files with 452 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ namespace InterfaceOff
[field: SerializeField] private GameObject DeathInfo { get; set; }
[field: SerializeField] private SpawnableWindowType[] WindowTypes { get; set; }
[field: SerializeField] private GameObject Parent { get; set; }
[field: SerializeField] private GameObject PasswordField { get; set; }
private int TotalSpawnWeight { get; set; }
[field: SerializeField] public int SpawnedWindowCount { get; private set; }
@@ -95,6 +96,11 @@ namespace InterfaceOff
private void FixedUpdate()
{
if (Random.Range(0, 1000) == 500)
{
PasswordField.SetActive(true);
}
/* Spawns new windows whilst active */
if (AutoSpawn)
{