public override void dispatch()
    {
        Vector3 vTrans = data.Get() * speed * axis;

        if (obj)
        {
            obj.transform.Translate(vTrans, space);
        }
    }
Esempio n. 2
0
    public override bool eval()
    {
        bool rval = false;

        if (data)
        {
            data.Set(Input.GetAxis(axis));
        }

        if (Mathf.Abs(data.Get()) > thresh)
        {
            rval = true;
        }

        return(rval);
    }