public void Button_Click() { if (uiScript == null) { Debug.LogError("UI Script not attached!"); return; } uiScript.bodyPartChosen(attachedMonsterBodyPart); }