protected virtual void Update()
 {
     if (Input.GetKey(positive))
     {
         mechanism.Drive(velocity, type);
     }
     else if (Input.GetKey(negative))
     {
         mechanism.Drive(-velocity, type);
     }
 }
 protected void DriveMechanism()
 {
     if (Input.GetKey(positive))
     {
         mechanism.Drive(velocity, type);
     }
     else if (Input.GetKey(negative))
     {
         mechanism.Drive(-velocity, type);
     }
 }
Beispiel #3
0
 protected virtual void Update()
 {
     if (Input.GetKey(positiveKey))
     {
         mechanism.Drive(1.0f);
     }
     else if (Input.GetKey(negativeKey))
     {
         mechanism.Drive(-1.0f);
     }
 }
Beispiel #4
0
 protected void DriveMechanism()
 {
     mechanism.Drive(velocity, type);
 }