Added basic robot arm controls

Added conveyor piston
Fixed conveyor friction
This commit is contained in:
Jan Groß
2021-06-12 19:19:34 +02:00
parent c5c02b97c5
commit 80178a0120
32 changed files with 2010 additions and 164 deletions

View File

@@ -4,6 +4,8 @@ using UnityEngine;
public class DirectionPaddle : MonoBehaviour
{
public GameObject piston;
public void Switch()
{
gameObject.SetActive(!gameObject.activeSelf);
@@ -14,5 +16,7 @@ public class DirectionPaddle : MonoBehaviour
this.GetComponent<Collider>().enabled = !this.GetComponent<Collider>().enabled;
this.GetComponent<MeshRenderer>().enabled = !this.GetComponent<MeshRenderer>().enabled;
piston.SetActive(!piston.activeSelf);
}
}