File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Assets/BossRoom/Scripts/Client/Game/Action Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ public class AoeActionInput : BaseActionInput
2020 Camera m_Camera ;
2121 int m_GroundLayerMask ;
2222 Vector3 m_Origin ;
23+
24+ //The general action system works on MouseDown events (to support Charged Actions), but that means that if we only wait for
25+ //a mouse up event internally, we will fire as part of the same UI click that started the action input (meaning the user would
26+ //have to drag her mouse from the button to the firing location). Tracking a mouse-down mouse-up cycle means that a user can
27+ //click on the ground separately from the mouse-click that engaged the action (which also makes the UI flow equivalent to the
28+ //flow from hitting a number key).
2329 bool m_ReceivedMouseDownEvent ;
2430
2531 RaycastHit [ ] m_UpdateResult = new RaycastHit [ 1 ] ;
You can’t perform that action at this time.
0 commit comments