| | |
| | |
|
| | | [SerializeField] CanvasGroup m_CanvasGroup;
|
| | |
|
| | | [SerializeField] GameObject m_ShadeObj;
|
| | | Dictionary<int, List<Transform>> AnimationFadeOutDic = new Dictionary<int, List<Transform>>();
|
| | | Dictionary<int, Transform> tranDic = new Dictionary<int, Transform>();
|
| | |
|
| | |
| | | {
|
| | | FuncOpen.Instance.OnFuncStateChangeEvent -= OnFuncStateChange;
|
| | | }
|
| | |
|
| | | public void FadeOut()//淡出
|
| | | {
|
| | | m_Animator.Play("MainFadeIn");
|
| | | m_ShadeObj.SetActive(false);
|
| | | }
|
| | | public void FadeIn()//淡入
|
| | | {
|
| | | m_Animator.Play("MainFadeOut");
|
| | | m_ShadeObj.SetActive(true);
|
| | | }
|
| | |
|
| | | public void ImmediatelyAppear()//立刻出现
|
| | | {
|
| | | m_Animator.Play("ImmediatelyAppear", 0, 1);
|
| | | m_ShadeObj.SetActive(true);
|
| | | }
|
| | |
|
| | | public void FadeAtOnce()//立刻消失
|
| | | {
|
| | | m_Animator.Play("FadeAtOnce", 0, 1);
|
| | | m_ShadeObj.SetActive(false);
|
| | | }
|
| | |
|
| | | public bool GetIsFadeIn()//是否淡入
|
| | | {
|
| | | if (m_CanvasGroup.alpha < 0.5)
|
| | |
| | | switch (index)
|
| | | {
|
| | | case 0:
|
| | |
|
| | |
|
| | | tran.SetParent(lineFadeOut.OneParent);
|
| | | tran.localPosition = Vector3.zero;
|
| | | break;
|
| | |
| | | default:
|
| | | break;
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | }
|
| | |
|
| | | private void PositionReduction()//还原位置(把盒子中的位置全部重新拉出来)
|