Ejemplo n.º 1
0
        public void PanelTransitionFadeIn()
        {
            PanelGameStateScript a  = this;
            GameObject           go = a.gameObject;

            SmoothGainValuesManager.instance.TransitionValueSetTo(0, 1,
                                                                  () => {
                go.SetActive(true);
                a.SetPanelTransparencyTo(0);
                BlockTouch();
            }, (
                                                                      float f) => {
                a.SetPanelTransparencyTo(f);
            },
                                                                  () => {
                Debug.Log("Complete2");
                UnBlockTouch();
            }, 2f);
        }
Ejemplo n.º 2
0
        public void PanelTransitionCenterToOut()
        {
            PanelGameStateScript a  = this;
            GameObject           go = a.gameObject;

            a.SetPanelTransparencyTo(1);
            SmoothGainValuesManager.instance.TransitionValueSetTo(0, Screen.width,
                                                                  () => {
                go.SetActive(true);
                go.transform.localPosition = new Vector3(0, 0, 0);
                BlockTouch();
            },
                                                                  (float f) => {
                go.transform.localPosition = new Vector3(f, 0, 0);
            },
                                                                  () => {
                go.SetActive(false);
                Debug.Log("Complete");
                UnBlockTouch();
            }, 2f);
        }