Planung um die das Door System als Kommentar notiert; erstmalig wichtige Modelle hinzugefügt
This commit is contained in:
29
Assets/Scripts/Door/DoorSystem.cs
Normal file
29
Assets/Scripts/Door/DoorSystem.cs
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user