示例#1
0
 void Start()
 {
     if (!InputReceiverSwitch.CheckInputActiveInHierarchy(this))
     {
         this.enabled = false;
     }
 }
示例#2
0
 void Update()
 {
     // <DEBUG switch item input.>
     if (Input.GetKeyDown(KeyCode.Q) && Inventory != null && InputReceiverSwitch.CheckInputActiveInHierarchy(this))
     {
         SwitchToNextItem();
     }
     // </DEBUG switch item input.>
 }
    void Start()
    {
        configurator = GetComponent <NumberConfigurator> ();

        if (!InputReceiverSwitch.CheckInputActiveInHierarchy(this))
        {
            this.enabled = false;
        }
    }