| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- namespace WildAttack
- {
- public class SmartBowController : MonoBehaviour
- {
- public static SmartBowController Instance;
- void Start()
- {
- Instance = this;
- SimulateMouseController.ins?.RemoveOpenLocker("NotGame");
- CameraToLook.ins.onParseRotation += OnRotationUpdate;
- }
- void OnDestroy()
- {
- if (Instance == this) Instance = null;
- }
- public void OnRotationUpdate(Quaternion rotation)
- {
- if (SB_EventSystem.ins.simulateMouseIsAwaked) return;
- GameMananger.GetInstance().OnRotationUpdate(rotation);
- }
- public void OnShooting(float speed)
- {
- GameMananger.GetInstance().OnModuleShooting(speed);
- }
- public bool IsBluetoothModuleInited()
- {
- return BluetoothAim.ins && BluetoothAim.ins.status == BluetoothStatusEnum.ConnectSuccess;
- }
- }
- }
|