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