コード例 #1
0
 public void Hide()
 {
     if (this.IsShowing)
     {
         UnityEngine.Object.Destroy(this.m_chatFrames.gameObject);
         this.m_chatFrames = null;
     }
 }
コード例 #2
0
    public void ShowForPlayer(BnetPlayer player)
    {
        string name = (UniversalInputManager.UsePhoneUI == null) ? "MobileChatFrames" : "MobileChatFrames_phone";

        UnityEngine.GameObject obj2 = AssetLoader.Get().LoadGameObject(name, true, false);
        if (obj2 != null)
        {
            this.m_chatFrames          = obj2.GetComponent <ChatFrames>();
            this.m_chatFrames.Receiver = player;
        }
    }