Exemple #1
0
 override public void OnPointerEnter(PointerEventData data)
 {
     if (aiming && data.button == PointerEventData.InputButton.Left)
     {
         hovering = true;
         MoveTarget(GetCursorPosition(data));
         StartAimingEvent.Dispatch();
     }
 }
Exemple #2
0
 public void StartAiming()
 {
     StartAimingEvent.Dispatch();
 }