Пример #1
0
    public void CallCompleted(int callerId, int receiverId)
    {
        var caller   = _phoneUsers.users.FirstOrDefault(user => user.Id == callerId);
        var receiver = _phoneUsers.users.FirstOrDefault(user => user.Id == receiverId);

        GameplayScreen.CallCompleted(caller, receiver);

        Board.ShowCable(receiverId);

        if (_currentRound == 2 && callerId == 9 && receiverId == 11)
        {
            StartCoroutine(DoCringe(false));
        }

        if (_currentRound == 3 && callerId == 1 && receiverId == 3)
        {
            StartCoroutine(DoCringe(false));
        }

        if (_currentRound == 3 && callerId == 0 && receiverId == 11)
        {
            StartCoroutine(DoCringe(true));
        }
    }