using System; using UnityEngine; using UnityEngine.UI; namespace Snxxz.UI { public class SocialWin : Window { [SerializeField] FunctionButton xianyuanBtn; [SerializeField] FunctionButtonGroup btnGroup; [SerializeField] Button closeBtn; [SerializeField] GameObject friendTipsObj; [SerializeField] ChatSendComponent m_ChatSend; protected override void BindController() { } protected override void AddListeners() { closeBtn.AddListener(CloseClick); xianyuanBtn.AddListener(ClickXianYuanBtn); } protected override void OnPreOpen() { m_ChatSend.parent = this; } protected override void OnActived() { base.OnActived(); btnGroup.TriggerByOrder(functionOrder); } protected override void OnAfterOpen() { } protected override void OnPreClose() { } protected override void OnAfterClose() { } private void ClickXianYuanBtn() { friendTipsObj.SetActive(true); functionOrder = xianyuanBtn.order; } } }