public void MarkEliminate(Coord2D coord) { GameObject obj = m_BG.GetElementByCoord(coord); if (obj == null) { return; } BoxElementControl objControl = obj.GetComponent <BoxElementControl>(); objControl.MarkEliminate(); }
public void EliminateBoxWithType(int type) { for (int i = 0; i < m_ElementArray.Length; i++) { if (m_ElementArray[i] == null) { continue; } BoxElementControl bec = m_ElementArray[i].GetComponent <BoxElementControl>(); if (bec.m_Type == type) { bec.MarkEliminate(); } } }