private void OnMouseDown() { if (Input.GetMouseButtonDown(0)) { if (clickManager.actualPieceClicked != null) { clickManager.lastPieceClicked = clickManager.actualPieceClicked; } clickManager.actualPieceClicked = gameObject; clickManager.OnClick(); } }
private void OnMouseDown() { scr.OnClick((int)this.gameObject.name[0] - 49); }