public void OnPointerDown(PointerEventData eventData)
 {
     if (MessageText.text != "")
     {
         string msg = "";
         if (BotSelected.CurrentItemCount() > 0)
         {
             //foreach (GameObject botref in BotSelected.GetCurrentAll())
             //{
             //    msg += botref.name + " and ";
             //}
             //  Debug.Log(msg + MessageText.text);
             GameObject[] botrefs = BotSelected.GetCurrentAll().ToArray();
             for (int i = 0; i < botrefs.Length; i++)
             {
                 msg += botrefs[i].name + " ";
                 if (i < botrefs.Length - 1)
                 {
                     msg += " and ";
                 }
             }
             writeSocket(msg + MessageText.text);
             TootTips.GetComponent <BotTooltipHandle>().Activate("Message send " + msg + MessageText.text);
         }
         else
         {
             TootTips.GetComponent <BotTooltipHandle>().Activate("Select at less one actor");
             TootTips.GetComponent <BotTooltipHandle>().closeAfter = 2f;
         }
     }
 }
    public void OnClickCell(GameObject go)
    {
        int index;

        if (!MultiSelection && BotSelected.CurrentItemCount() == 1)
        {
            index = BotSelected.GetCurrentItemIndex(go.name);
            if (index != -1)
            {
                changeSlotBg(go, "Slot", new Color(1f, 1f, 1f, 1f));
                BotSelected.removeCurrentItem(index);
            }
            return;
        }
        // pupulate with the gameObject presented in the game
        index = BotSelected.addCurrentItem(go);
        if (index == -1)
        {
            changeSlotBg(go, "CurrentSlot", new Color(1f, 0.92f, 0.016f, 1f));
        }
        else
        {
            changeSlotBg(go, "Slot", new Color(1f, 1f, 1f, 1f));
            BotSelected.removeCurrentItem(index);
        }
    }