Ejemplo n.º 1
0
    IEnumerator QMAnim()
    {
        this.transform.localPosition = new Vector2(-1213, 326);
        float time = 0f;

        while (time < 0.4f)
        {
            time += Time.deltaTime;
            float ToFill = time * (1 / 0.4f);
            transform.localPosition = Vector2.Lerp(new Vector2(-1213, 326), new Vector2(-704, 326), ToFill);
            yield return(null);
        }
        yield return(new WaitForSeconds(1f));

        time = 0f;
        while (time < 0.4f)
        {
            time += Time.deltaTime;
            float ToFill = time * (1 / 0.4f);
            transform.localPosition = Vector2.Lerp(new Vector2(-704, 326), new Vector2(-1213, 326), ToFill);
            yield return(null);
        }

        nowQMState = E_QMState.IDLE;
    }
Ejemplo n.º 2
0
    void ShowQM()
    {
        // Debug.Log("쇼큐엡");
        if (nowQMState == E_QMState.SHOWING)
        {
            return;
        }
        if (QMQue.Count > 0)
        {
            qmText.text = QMQue.Dequeue();
            nowQMState  = E_QMState.SHOWING;
            Debug.Log("쇼큐엡 - 간다! +" + qmText.text);

            StartCoroutine(QMAnim());
        }
    }