void OnGUI() { if (entity.isSelected && powerIsToggleableInGame) { if (GUI.Button(new Rect(Camera.main.pixelWidth - 74, Camera.main.pixelHeight - 74, 64, 64), poweredOn ? "ON" : "OFF")) { ComSat.IssueSetPowerState(entity, !poweredOn); } } }