/// <summary> /// Clear the invite and send a whisper letting them know that /// this has occured. /// </summary> /// <param name="companyName"></param> /// <returns></returns> IEnumerator ClearInvite(string companyName) { Debug.Log("Clearing invite."); yield return(new WaitForSeconds(300)); company = companies[companyName]; string invitedUsername = company.GetFirstInvite(); company.RemoveFirstInvite(); string founderUsername = company.GetOwner; // TODO - Currently whispers are broken client.SendWhisper(founderUsername, "Your invite to " + invitedUsername + " has run out."); Debug.Log("Invite ran out."); }