Finalized for game jam submission

Lots of bugfixes
New tasks
This commit is contained in:
Jan Groß
2021-06-13 20:37:07 +02:00
parent a202fd5e6a
commit ee7a16dd2e
185 changed files with 46707 additions and 5900 deletions

View File

@@ -6,6 +6,7 @@ public class DirectionPaddle : MonoBehaviour
{
public GameObject piston;
public GameObject visuals;
public void Switch()
{
gameObject.SetActive(!gameObject.activeSelf);
@@ -13,10 +14,14 @@ public class DirectionPaddle : MonoBehaviour
public void InteractNode()
{
GetComponent<AudioSource>().Play();
this.GetComponent<Collider>().enabled = !this.GetComponent<Collider>().enabled;
this.GetComponent<MeshRenderer>().enabled = !this.GetComponent<MeshRenderer>().enabled;
piston.SetActive(!piston.activeSelf);
visuals.SetActive(!visuals.activeSelf);
}
}