Преглед на файлове

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

lvjincheng преди 2 години
родител
ревизия
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);
         }