Beispiel #1
0
 void IPaidWindowObserver.NotifyPaidWindowOpened(PaidWindow window)
 {
     if (window.ListAbilities().All(ability => !ability.Usable))
     {
         window.Pass();
     }
 }
Beispiel #2
0
        void IEndDragHandler.OnEndDrag(PointerEventData eventData)
        {
            eventData.selectedObject   = null;
            canvasGroup.blocksRaycasts = true;
            var raycast = new List <RaycastResult>();

            EventSystem.current.RaycastAll(eventData, raycast);
            var onDrop = raycast.Where(r => r.gameObject == zone.gameObject).Any();

            if (onDrop)
            {
                window.Pass();
            }
            PutBack();
            zone.StopDragging();
        }
Beispiel #3
0
 void IPaidWindowObserver.NotifyPaidWindowOpened(PaidWindow window)
 {
     window.Pass();
 }