|
@@ -57,8 +57,12 @@ public class BluetoothAim : MonoBehaviour
|
|
|
|
|
|
|
|
private bool userDoConnect = false;
|
|
private bool userDoConnect = false;
|
|
|
private bool doConnect = false;
|
|
private bool doConnect = false;
|
|
|
|
|
+ public Func<bool> action_DoConnectInterceptor;
|
|
|
public void DoConnect()
|
|
public void DoConnect()
|
|
|
{
|
|
{
|
|
|
|
|
+ if (action_DoConnectInterceptor != null) {
|
|
|
|
|
+ if (action_DoConnectInterceptor.Invoke()) return;
|
|
|
|
|
+ }
|
|
|
if (status == BluetoothStatusEnum.Connect)
|
|
if (status == BluetoothStatusEnum.Connect)
|
|
|
{
|
|
{
|
|
|
userDoConnect = true;
|
|
userDoConnect = true;
|