private void OnTriggerExit(Collider other) { if (other.gameObject.tag == THROWABLE_TAG) { if (other.transform.parent != null) { other.gameObject.GetComponent <Renderer>().material = cheatingMaterial; other.gameObject.layer = LayerMask.NameToLayer(INACTIVE_LAYER); } controllerInputManagerLeft.SetCheating(true); controllerInputManagerRight.SetCheating(true); } }