Просмотр исходного кода

WildAttack鼠标激活时,弓不要移动

lvjincheng 2 лет назад
Родитель
Сommit
b4060ea605
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      Assets/DuckHunter/Scripts/SmartBowController.cs

+ 1 - 0
Assets/DuckHunter/Scripts/SmartBowController.cs

@@ -21,6 +21,7 @@ namespace DuckHunter
 
         public void OnRotationUpdate(Quaternion rotation)
         {
+            if (SB_EventSystem.ins.simulateMouseIsAwaked) return;
             GameManager.Instance?.OnModuleRotationUpdate(rotation);
         }