コード例 #1
0
/** \cond */

        // ----------------------
        public void SetRig(InputRig rig) //TouchController ctrl)
        {
            if ((rig != null) && !rig.CanBeUsed())
            {
                rig = null;
            }

            if (this.rig != rig)
            {
                if (this.rig != null)
                {
                    this.rig.RemoveControl(this);
                }

                this.rig = rig;
                if (this.rig != null)
                {
                    this.rig.AddControl(this);
                }
            }

            this.disablingConditions.SetRig(this.rig);

            this.SyncDisablingConditions(true);
        }