예제 #1
0
            // ----------------
            public void Update(InputRig rig, float val)
            {
                if ((val < this.min) || (val > this.max))
                {
                    return;
                }

                if (this.keyTarget != KeyCode.None)
                {
                    rig.SetKeyCode(this.keyTarget);
                }

                if (!string.IsNullOrEmpty(this.axisTarget))
                {
                    rig.SetAxisDigital(this.axisTarget, ref this.cachedAxisId, !this.positiveAxisSide);
                }
            }