added test light switches and hold progress circle

This commit is contained in:
janis
2022-02-15 17:50:57 +01:00
parent c485401c58
commit 7872a35be1
341 changed files with 27344 additions and 9134 deletions

View File

@@ -0,0 +1,22 @@
using UnityEngine;
using UnityEngine.Rendering.Universal;
public class TestLight : Interactable
{
[Header("Test Light Properties")]
[SerializeField] Color color;
[SerializeField] Light2D globalLight;
public override string GetDescription()
{
if (isInRange())
return "Turn Light " + gameObject.name;
else
return "Light switch not in range";
}
public override void Interact()
{
globalLight.color = color;
Debug.Log("Color set to " + gameObject.name);
}
}