Пример #1
0
 public override void OnSCAwake()
 {
     base.OnSCAwake();
     if (Application.platform == RuntimePlatform.Android)
     {
         bT3DofConnectListener = new BT3DofConnectListener(this);
         AndroidPluginBase.ObjectAddListener(AndroidPluginBT3Dof.BT3DofManager, "setHandShankConnStateCallback", bT3DofConnectListener);
     }
 }
Пример #2
0
 public override void OnSCDestroy()
 {
     base.OnSCDestroy();
     bT3DofConnectListener = null;
     if (Application.platform == RuntimePlatform.Android)
     {
         AndroidPluginBase.ObjectAddListener(AndroidPluginBT3Dof.BT3DofManager, "setHandShankConnStateCallback", null);
     }
 }
Пример #3
0
        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);
                }
            }
        }