public IEnumerator OnGetOutPiece(object obj, GetOutPieceEventArgs e) { PieceUI pieceUi = playersData[e.piece.player.index].piecesParent.GetChild(e.piece.index).GetComponent <PieceUI>(); Transform[] transforms = new Transform[] { playersData[e.piece.player.index].outsParent.GetChild(e.piece.position) }; SFX.instance.PlayPieceHitSound(); yield return(StartCoroutine(pieceUi.StepMove(transforms, 2))); }
public void OnGetOutPiece(object obj, GetOutPieceEventArgs e) { taskManager.Add(() => { StartCoroutine(SafeRun(visualizer.OnGetOutPiece(obj, e))); }); }
public void OnGetOutPiece(object obj, GetOutPieceEventArgs e) { Debug.LogFormat("GET OUT: piece {0} position {1}", e.piece.index, e.piece.position); }