RemoteController.SendController C# (CSharp) Method

SendController() public method

public SendController ( EventedButton, b ) : void
b EventedButton,
return void
    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);
    }