예제 #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);
                }
            }
        }