Planung um die das Door System als Kommentar notiert; erstmalig wichtige Modelle hinzugefügt

This commit is contained in:
Zinziel
2026-02-04 13:02:31 +01:00
parent 2bd781a065
commit 8e2f6bddd1
19 changed files with 1364 additions and 0 deletions

8
Assets/Scripts/Door.meta Normal file
View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 7d0ed0651b788d043acff35acd73ef9d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,29 @@
using UnityEngine;
public class DoorSystem : MonoBehaviour
{
[SerializeField] private GameObject[] doors;
[SerializeField] private GameObject[] doorSwitchers;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public bool DoorOpen() {
// Tür ist zu, dann zieh Energie ab, Gegner können nicht angereifen, man kann Schalter drücken um zu öffnen
// Tür ist offen, Angriff auf Spieler ist möglich, man kann auf Schalter drücken und zu machen
return true;
}
// Plan
// Script an Tür, damit es auf und zu geht, also hoch und runter, dabei wird es in Y Achse skaliert + Y Achse neu positioniert
// Wenn man auf Schalter neben der Tür tippt, dann betätigt man die Tür, aber es zieht Strom ab
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: fe9a94abb4818624cbe981af6c2f18cd