예제 #1
0
 //----------------生命周期方法---------------------
 public override void Awake()
 {
     base.Awake();
     greyBg_ = UnityEngine.Object.Instantiate(ResourceUtil.LoadPrefabFromAb(PREFAB_NAME_ALERTBG));
     GameObjectUtil.SetParentToChild(alertsRoot_, greyBg_, false);
     GameObjectUtil.SetZ(greyBg_, ZORDER_BG);
 }
예제 #2
0
 //---------------生命周期方法--------------------------
 public virtual void Awake()
 {
     alertsRoot_ = GameObject.Find("Global/UI/AlertsCanvas/");
     wins_       = new List <UI>();
     // 加载 持有预制 然后卸载 ab note
     prefabAlert_       = ResourceUtil.LoadPrefabFromAb(PREFAB_NAME_ALERT);
     prefabDoubleCheck_ = ResourceUtil.LoadPrefabFromAb(PREFAB_NAME_DOUBLECHECK);
 }