public override void OnBeginDrag(PointerEventData eventData) { base.OnBeginDrag(eventData); if (!mPieceManager.CheckPiecesPlayersTurn(this)) { return; } transform.SetAsLastSibling(); CheckPathing(); ShowCells(); }
public override void OnBeginDrag(PointerEventData eventData) { base.OnBeginDrag(eventData); if (!mPieceManager.CheckPiecesPlayersTurn(this)) { return; } transform.SetAsLastSibling(); CheckPathing(); ShowCells(); }