Add node interactions

This commit is contained in:
Jan Groß
2021-06-12 14:18:38 +02:00
parent 927b1f2882
commit 4ad82fe684
4 changed files with 25 additions and 5 deletions

View File

@@ -8,4 +8,11 @@ public class DirectionPaddle : MonoBehaviour
{
gameObject.SetActive(!gameObject.activeSelf);
}
public void InteractNode()
{
this.GetComponent<Collider>().enabled = !this.GetComponent<Collider>().enabled;
this.GetComponent<MeshRenderer>().enabled = !this.GetComponent<MeshRenderer>().enabled;
}
}