void OnMouseDrag() { if (EventSystem.current.IsPointerOverGameObject()) { return; } if (getBoard().boardMatrix[posX, posY] != null) { Orb currentOrb = getBoard().boardMatrix[posX, posY] as Orb; if (currentOrb) { currentOrb.OnMouseDrag(); } } }
void OnMouseDrag() { if (EventSystem.current.IsPointerOverGameObject()) { return; } if (getBoard().boardMatrix[posX, posY] != null) { Orb currentOrb = getBoard().boardMatrix[posX, posY] as Orb; if (currentOrb) { currentOrb.OnMouseDrag(); } } }