void ClickComBox(ComBox hitBox) { if (hitBox.index != 10 && !hitBox.fall) { if (m_SelectBox == null) { m_SelectBox = hitBox; background.transform.localPosition = m_SelectBox.gameObject.transform.localPosition; } else { m_OtherBox = hitBox; if (m_SelectBox != m_OtherBox && m_SelectBox.index == m_OtherBox.index) { List <Vector2> lineList = boxManager.LinkTwoBox(m_SelectBox, m_OtherBox); if (lineList != null) { m_SelectBox.Explode(); m_SelectBox = null; m_OtherBox.Explode(); m_OtherBox = null; background.transform.localPosition = new Vector3(10f, 10f, 0f); DrawLine(lineList); GameStaticData.Combo += 1; CheckPanelState(); } else { GameStaticData.Combo = 0; m_SelectBox = m_OtherBox; background.transform.localPosition = m_SelectBox.gameObject.transform.localPosition; } } else { GameStaticData.Combo = 0; m_SelectBox = m_OtherBox; background.transform.localPosition = m_SelectBox.gameObject.transform.localPosition; } } } }