private void SetBroadcastMode() { // setText txt_BroadcastMode_LabelText.text = bm_Mode.ToString(); //KU this //if (bm_Mode == BroadcastMode.receive) // txt_BroadcastMode_ButtonText.text = "Switch to " + BroadcastMode.send.ToString(); //else // txt_BroadcastMode_ButtonText.text = "Switch to " + BroadcastMode.receive.ToString(); }
private void SetBroadcastMode() { // setText txt_BroadcastMode_LabelText.text = bm_Mode.ToString(); if (bm_Mode == BroadcastMode.receive) { txt_BroadcastMode_ButtonText.text = "Switch to " + BroadcastMode.send.ToString(); } else { txt_BroadcastMode_ButtonText.text = "Switch to " + BroadcastMode.receive.ToString(); } }