using System; using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using UnityEngine.UI; namespace vnxbqy.UI { public class FairyBoss : Window, SecondWindowInterface { [SerializeField] Text textBossName; [SerializeField] Text textChallengeTime; [SerializeField] Text textBossState; [SerializeField] Button beginBtn; [SerializeField] RawImage model; [SerializeField] FunctionButton personalHurtBtn; [SerializeField] FunctionButton familyHurtBtn; [SerializeField] FunctionButtonGroup fbGroup; [SerializeField] ScrollerController scroller; FairyBossModel m_Model; FairyBossModel fairyBossModel { get { return m_Model ?? (m_Model = ModelCenter.Instance.GetModel()); } } public Button close { get; set; } protected override void OnActived() { if (fairyBossModel.redpoint2.state == RedPointState.Simple) { functionOrder = 1; } fbGroup.TriggerByOrder(functionOrder); } protected override void BindController() { if (this is SecondWindowInterface) { var frame = this.GetComponentInChildren(); frame.Create(); close = frame.GetComponentInChildren