Beispiel #1
0
 // Update is called once per frame
 void Update()
 {
     if (System.Convert.ToInt32(machine.currentState) == 5 && machine.getVelocity() > 0f)
     {
         trail.enabled = true;
     }
     else
     {
         trail.enabled = false;
     }
 }