//bad move, return chips back private void MoveChipsBack() { movingCounter = 0; isMovingBack = true; selectedChip.MoveTo(secondChip.gameObject.transform.position); secondChip.MoveTo(selectedChip.gameObject.transform.position); }
internal void TrySwipeWith(ChipBehaviour secondChip) { Debug.Log("TrySwipe"); for (int i = 0; i < MAX_ROWS; i++) { for (int j = 0; j < MAX_COLS; j++) { if (chipArray[i, j]) { chipArray[i, j].halo.enabled = false; } } } bonusRow = new int[MAX_COLS]; isFieldActive = false; SetPhysics(false); this.secondChip = secondChip; movingCounter = 0; selectedChip.MoveTo(secondChip.gameObject.transform.position); secondChip.MoveTo(selectedChip.gameObject.transform.position); }