예제 #1
0
 public static void Hide(Action callback = null)
 {
     foreach (var item in instance.image_fadeArray)
     {
         item.DOFade(0, fadeDuration);
     }
     MatFader.DoFade(0, fadeDuration, callback, instance.tran_fadeGroup);
     Stop_RecordingAnim();
 }
예제 #2
0
    void Start()
    {
        fadeDuration = CorePlaySettings.Instance.m_VoiceNodeFadeInTimeLength / 1000f;
        MatFader.DoFade(0, 0, null, instance.tran_fadeGroup);
        foreach (var item in image_fadeArray)
        {
            item.color = new Color(1, 1, 1, 0);
        }

        canvas_Base.worldCamera  = Camera.main;
        canvas_Front.worldCamera = Camera.main;
        text_Voice.text          = string.Empty;
        rectTran_Voice           = text_Voice.GetComponent <RectTransform> ();
        rightPosX = rectTran_Voice.anchoredPosition.x + (canvas_Front.transform as RectTransform).rect.width;
        leftPosX  = rectTran_Voice.anchoredPosition.x - (canvas_Front.transform as RectTransform).rect.width;
    }
예제 #3
0
    public static void Show(Action callback = null)
    {
        //if (!instance.isShown)
        //{
        //AudioController.Play("SpeekLoud");
        //instance.isShown = true;
        //}

        foreach (var item in instance.do_micAnims)
        {
            item.DORewind();
        }
        micFillAmount = instance.image_micOn.fillAmount = 0;
        foreach (var item in instance.image_fadeArray)
        {
            item.DOFade(1, fadeDuration);
        }
        MatFader.DoFade(1, fadeDuration, callback, instance.tran_fadeGroup);
    }