Added basic robot arm controls
Added conveyor piston Fixed conveyor friction
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user