Exemplo n.º 1
0
 public void OnPointerClick(BaseEventData eventData)
 {
     if (!talkShow.IsPlayingText && talkShow.IsAllowClick && !viewArea.active)
     {
         talkShow.textSpeed = 0.05f;
         itemAreaCover.SetActive(true);
         talkShow.ResolveNextText();
     }
 }
Exemplo n.º 2
0
 public void SetTargetBranchIndex(int index)
 {
     Debug.Log("进入分支:" + (index + 1));
     targetBranchIndex  = index;
     isInBranch         = true;
     talkShow.rowIndex += branchDatas[targetBranchIndex].jumpFrontNumber;
     rowIndexStart      = talkShow.rowIndex;
     rowIndexEnd        = rowIndexStart + branchDatas[targetBranchIndex].branchNumber;
     talkShow.ResolveNextText();
     talkShow.IsAllowClick = true;
 }