public override void OnSCAwake() { base.OnSCAwake(); if (Application.platform == RuntimePlatform.Android) { bT3DofConnectListener = new BT3DofConnectListener(this); AndroidPluginBase.ObjectAddListener(AndroidPluginBT3Dof.BT3DofManager, "setHandShankConnStateCallback", bT3DofConnectListener); } }
public override void OnSCDestroy() { base.OnSCDestroy(); bT3DofConnectListener = null; if (Application.platform == RuntimePlatform.Android) { AndroidPluginBase.ObjectAddListener(AndroidPluginBT3Dof.BT3DofManager, "setHandShankConnStateCallback", null); } }
public InputDataGetBT3DofKey(InputDataGetBT3Dof _inputDataGetBT3Dof) : base(_inputDataGetBT3Dof) { inputDataGetBT3Dof = _inputDataGetBT3Dof; if (isInvokeOnce == false) { isInvokeOnce = true; if (Application.platform == RuntimePlatform.Android) { BT3DofKeyListener = new BT3DofKeyListener(this); AndroidPluginBase.ObjectAddListener(AndroidPluginBT3Dof.BT3DofManager, "setHandShankKeyEventCallback", BT3DofKeyListener); } } }