public override void dispatch() { Vector3 vTrans = data.Get() * speed * axis; if (obj) { obj.transform.Translate(vTrans, space); } }
public override bool eval() { bool rval = false; if (data) { data.Set(Input.GetAxis(axis)); } if (Mathf.Abs(data.Get()) > thresh) { rval = true; } return(rval); }