merged mit noah und juilius

This commit is contained in:
DerTyp187
2021-09-25 16:33:18 +02:00
parent 904b534695
commit 935eb3c0be
30 changed files with 8270 additions and 28 deletions

View File

@@ -4,6 +4,7 @@ using UnityEngine;
public class LightSwitch : Interactable
{
public GameObject GameManager;
public Light m_Light;
public bool isOn;
@@ -29,7 +30,16 @@ public class LightSwitch : Interactable
public override void Interact()
{
isOn = !isOn;
Debug.Log("Click Light");
if (isOn) {
GameManager.GetComponent<EventLog>().CreateEvent("Licht2");
}
else
{
GameManager.GetComponent<EventLog>().CreateEvent("Licht1");
}
//Debug.Log("Click Light");
UpdateLight();
}
}