Exemplo n.º 1
0
 void Start()
 {
     if (!InputReceiverSwitch.CheckInputActiveInHierarchy(this))
     {
         this.enabled = false;
     }
 }
Exemplo n.º 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;
        }
    }