| 
									
										
										
										
											2022-02-15 07:43:03 +00:00
										 |  |  |  | using System.Collections; | 
					
						
							|  |  |  |  | using System.Collections.Generic; | 
					
						
							|  |  |  |  | using UnityEngine; | 
					
						
							|  |  |  |  | using UnityEngine.UI; | 
					
						
							|  |  |  |  | using DG.Tweening; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | public class PanelNoAdsTip : BasePanel | 
					
						
							|  |  |  |  | { | 
					
						
							|  |  |  |  |     [SerializeField] CanvasGroup mCvsBg; | 
					
						
							|  |  |  |  |     [SerializeField] RectTransform mRctBg; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     [SerializeField] Button mBtnMask; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     private void Awake() | 
					
						
							|  |  |  |  |     { | 
					
						
							|  |  |  |  |         UIUtils.BindBtn(mBtnMask, OnClickMask); | 
					
						
							|  |  |  |  |     } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     public override void OnOpen() | 
					
						
							|  |  |  |  |     { | 
					
						
							|  |  |  |  |         base.OnOpen(); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         mCvsBg.alpha = 0; | 
					
						
							|  |  |  |  |         mRctBg.anchoredPosition = new Vector2(0, -160); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         mCvsBg.DOFade(1, 0.3f); | 
					
						
							|  |  |  |  |         mRctBg.DOAnchorPosY(100, 0.3f); | 
					
						
							| 
									
										
										
										
											2022-02-15 10:18:44 +00:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-16 09:00:22 +00:00
										 |  |  |  |         AudioManager.Instance.PlaySound(AudioClipType.Click_Tip); | 
					
						
							| 
									
										
										
										
											2022-02-15 07:43:03 +00:00
										 |  |  |  |     } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     public override void OnClose() | 
					
						
							|  |  |  |  |     { | 
					
						
							|  |  |  |  |         base.OnClose(); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-16 09:00:22 +00:00
										 |  |  |  |         AudioManager.Instance.PlaySound(AudioClipType.UIClose); | 
					
						
							| 
									
										
										
										
											2022-02-15 07:43:03 +00:00
										 |  |  |  |     } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     private void OnClickMask() | 
					
						
							|  |  |  |  |     { | 
					
						
							|  |  |  |  |         mCvsBg.DOFade(0, 0.3f); | 
					
						
							|  |  |  |  |         mRctBg.DOAnchorPosY(-160, 0.3f).onComplete = Close; | 
					
						
							|  |  |  |  |     } | 
					
						
							|  |  |  |  | } |