示例#1
0
 public AndroidBridgeManager(int baudrate)
 {
     bridgeGameObject      = new GameObject();
     bridgeGameObject.name = "AndroidBridge";
     bridgeComponent       = bridgeGameObject.AddComponent <AndroidBridge>();
     bridge = (AndroidBridge)bridgeComponent;
     bridge.InputChanged      += OnInputChanged;
     bridge.ConnectionChanged += OnConnectionChanged;
     bridge.Setup(baudrate);
 }