Beispiel #1
0
    public void AddChainedNote(NoteCtrl note)
    {
        m_ChainRenderer.SetPosition(m_ChainCount, (Vector2)note.transform.position - m_StartPos);

        m_ChainCount++;

        m_ChainRenderer.positionCount++;
        m_ChainRenderer.SetPosition(m_ChainCount, (Vector2)note.transform.position - m_StartPos);

        note.Touched();

        UIManager.Instance.IncreaseGauge();

        if (m_ChainCount > m_MinusMatchCount && m_IsEvading == false)
        {
            UIManager.Instance.m_SlateCtrl.SwitchPlayerAttackIcon(true);
        }

        // 8개 패턴 모드 매칭되는 경우
        if (m_ChainCount == 8)
        {
            // 타이틀 패턴 해금
            if (GameManager.Instance.m_IsTitle)
            {
                ClearFieldAndSlate(false);
                return;
            }

            TouchManager.Instance.m_IsPressing = false;

            DoAttack();

            if (m_IsEvading)
            {
                m_IsEvading = false;
                TimeManager.Instance.StartBossTimer();
                UIManager.Instance.ChangeSlate();
            }

            ClearFieldAndSlate(false);

            return;
        }
    }
Beispiel #2
0
    public void InitChain(NoteCtrl note)
    {
        Debug.Log("Start Note Chain");

        m_ChainCount = 1;

        m_ChainRenderer.positionCount = 2;

        m_StartPos         = note.transform.position;
        transform.position = note.transform.position;

        m_ChainRenderer.SetPosition(0, Vector2.zero);
        m_ChainRenderer.SetPosition(1, Vector2.zero);

        m_TouchChainNotes.Add(note);

        note.Touched();

        UIManager.Instance.IncreaseGauge();
    }