static void TouchPlayerList(NarrativeUi *self, Tch *tches, int tchCount)
    {
        var playerBubbles = self->playerBubbles;

        // HidePlayerBubble if touched on the bubble
        for (int i = 0, count = self->playerCount; i < count; i += 1)
        {
            var playerBubble = playerBubbles[i];

            if (playerBubble->isVisible)
            {
                for (int i = 0; i < tchCount; i += 1)
                {
                    var tch = tches + i;
                    if (tch->phase == TchPhase.Enter && Node.Raycast(playerBubble, tch->pos))
                    {
                        HidePlayerBubble(self, i);
                        break;
                    }
                }
            }
        }
    }
Exemplo n.º 2
0
 public static void Touch(NarrativeUi *self, Tch *touches, int touchCount)
 {
     TouchPlayerList(touches, touchCount);
 }
 static void TouchBranchSelect(NarrativeUi *self, Tch *tches, int tchCount)
 {
 }