Ejemplo n.º 1
0
        public void TappedInviteFromCreate(  )
        {
            TacoManager.OpenModalWithPreFab(TacoConfig.TacoInviteFriendsModalHeader, TournamentCreateInvitePrefab, TacoConfig.InviteSprite, ModalFunctions.InviteFriendsFromCreate, TacoConfig.CloseSprite, null);

            TacoModalPanel.Instance.SetModalButtonEnabled(false);

            TournamentCreateInvite _tournamentCreateInvite = TacoModalPanel.Instance.GetPreFab().GetComponent <TournamentCreateInvite> ();


            for (var i = 0; i < invitedFriends.Count; i++)
            {
                _tournamentCreateInvite.AddInvite(invitedFriends[i], i);

                /*
                 * _tournamentCreateInvite.AddInvite(invitedFriends[0] , 1);
                 * _tournamentCreateInvite.AddInvite(invitedFriends[0], 2);
                 * _tournamentCreateInvite.AddInvite(invitedFriends[0] , 3);
                 * _tournamentCreateInvite.AddInvite(invitedFriends[0], 4);
                 * _tournamentCreateInvite.AddInvite(invitedFriends[0] , 5);
                 * _tournamentCreateInvite.AddInvite(invitedFriends[0], 0);
                 * _tournamentCreateInvite.AddInvite(invitedFriends[0] , 0);
                 * _tournamentCreateInvite.AddInvite(invitedFriends[0], 0);
                 * _tournamentCreateInvite.AddInvite(invitedFriends[0] , 0);
                 * _tournamentCreateInvite.AddInvite(invitedFriends[0], 0);
                 * _tournamentCreateInvite.AddInvite(invitedFriends[0] , 0);
                 * _tournamentCreateInvite.AddInvite(invitedFriends[0], 0);
                 */
            }
        }
Ejemplo n.º 2
0
        public void InviteFriendsFromCreate()
        {
            GameObject invitePreFab = TacoModalPanel.Instance.GetPreFab();

            TournamentCreateInvite _tournamentCreateInvite = invitePreFab.GetComponent <TournamentCreateInvite>();

            invitedFriends.Add(_tournamentCreateInvite.EmailInput.text);
        }