public void SendController(EventedButton[] b)
{
print("sneding");
buttons = b;
string identifier = avatar.qArrr.GetComponent<QArrrSocket>().identifier;
string res = JsonMapper.ToJson(new ControllerLayout(avatar.clientid, b, identifier));
avatar.qArrr.GetComponent<QArrrSocket>().Send(res);
print(res);
}