private void MoveGate(BoardIndex obj) { if (obj.Equals(BoardIndex.First)) { transform.DOMoveY(-0.35f, 1f); } }
private void SpawnConfetti(BoardIndex obj) { if (obj.Equals(BoardIndex.Second)) { GameObject go = Instantiate(confettiPrefab, new Vector3(0, 0, 15), Quaternion.Euler(180f, 0, 0)); Destroy(go, 2.5f); } }
protected Checker GetCheckerPreview(BoardIndex index, List <BoardIndex> moves) { if (moves.Count > 0) { BoardIndex last = moves.Last(); if (last.Equals(index)) { last = moves[0]; } return(board[index.Row, index.Col] ?? board[last.Row, last.Col]); } return(board[index.Row, index.Col]); }