Exemplo n.º 1
0
 void OnClickHitArea(UguiNovelTextHitArea hitGroup, Action <string> OnClicked)
 {
     switch (hitGroup.HitEventType)
     {
     case CharData.HitEventType.Sound:
         OnClicked(hitGroup.Arg);
         break;
     }
 }
Exemplo n.º 2
0
        //クリック
        public void OnPointerClick(PointerEventData eventData)
        {
            UguiNovelTextHitArea group = HitTest(eventData);

            if (group != null)
            {
                OnClick.Invoke(group);
            }
        }
        public void OnPointerClick(PointerEventData eventData)
        {
            UguiNovelTextHitArea area = this.HitTest(eventData);

            if (area != null)
            {
                this.OnClick.Invoke(area);
            }
        }
Exemplo n.º 4
0
        //当たり判定のチェック
        public bool IsRaycastLocationValid(Vector2 sp, Camera eventCamera)
        {
            UguiNovelTextHitArea target = HitTest(sp, eventCamera);

            if (isEntered)
            {
                ChangeCurrentTarget(target);
            }
            return(target != null);
        }
 private void ChangeCurrentTarget(UguiNovelTextHitArea target)
 {
     if (this.currentTarget != target)
     {
         if (this.currentTarget != null)
         {
             this.currentTarget.ResetEffectColor();
         }
         this.currentTarget = target;
         if (this.currentTarget != null)
         {
             this.currentTarget.ChangeEffectColor(this.hoverColor);
         }
     }
 }
Exemplo n.º 6
0
        void ChangeCurrentTarget(UguiNovelTextHitArea target)
        {
            if (currentTarget != target)
            {
                if (currentTarget != null)
                {
                    currentTarget.ResetEffectColor();
                }

                currentTarget = target;
                if (currentTarget != null)
                {
                    currentTarget.ChangeEffectColor(hoverColor);
                }
            }
        }
Exemplo n.º 7
0
 public void OnClickTips(UguiNovelTextHitArea hit)
 {
     Debug.Log(hit.Arg);
 }