void Update() { if (Input.GetKeyDown(KeyCode.K)) { _enemies = FindObjectsOfType <Enemy>(); foreach (var VARIABLE in _enemies) { VARIABLE.DieCheat(); } } if (Input.GetKeyDown(KeyCode.H)) { _player.HealCheat(); } if (Input.GetKeyDown(KeyCode.J)) { _player.GetComponent <ShieldManager>().ShieldCheat(); } }