// 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; } }
// 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; } }