Пример #1
0
    private void Update()
    {
        Kid kid = GetKid();

        interactBubble.SetActive(kid != null);

        if (kid != null)
        {
            int indexDown = GetIndexDown();

            if (indexDown == kid.ReqIndex)
            {
                kid.CompleteRequest(true);
            }
            else if (indexDown != -1)
            {
                kid.CompleteRequest(false);
            }
        }
    }