public void InitChat(string chatName, Image chatImage, MobileChat mobile) { if (chatImage != null) { image = chatImage; } nameChat.text = chatName; numberNews.text = "0"; adventisement.SetActive(false); mobileChat = mobile; }