Finalized for game jam submission
Lots of bugfixes New tasks
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user