少年修仙传客户端代码仓库
client_Wu Xijin
2019-04-16 fc714208ff3a320c3bb52bddd5ea3d91f647a206
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//--------------------------------------------------------
//    [Author]:           第二世界
//    [  Date ]:           Sunday, April 08, 2018
//--------------------------------------------------------
 
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
 
namespace Snxxz.UI {
 
    public class DungeonAncientAchieveWin : Window
    {
        [SerializeField] Button m_Close;
        [SerializeField] AchieveTargetBehaviour m_AchieveTargetBehaviour;
        #region Built-in
        protected override void BindController()
        {
        }
 
        protected override void AddListeners()
        {
            m_Close.onClick.AddListener(CloseClick);
        }
 
        protected override void OnPreOpen()
        {
            m_AchieveTargetBehaviour.Init(31160);
            MainInterfaceWin.Event_Duplicates += OnChangeFuncBtnPosEvent;
        }
 
        protected override void OnAfterOpen()
        {
        }
 
        protected override void OnPreClose()
        {
            MainInterfaceWin.Event_Duplicates -= OnChangeFuncBtnPosEvent;
        }
 
        protected override void OnAfterClose()
        {
        }
        #endregion
        private void OnChangeFuncBtnPosEvent(bool open, float _speed)
        {
            if (open)
            {
                CloseImmediately();
            }
        }
    }
 
}