public void SelectPiece(int placementType) { Debug.Log("Piece Selected: " + this.transform.name); selected = true; startHex = currentHex; hexController.HighlightStart(currentHex); boardManager.SelectingNewPiece(); this.transform.position = new Vector3(this.transform.position.x, this.transform.position.y, layerHt2); //Move up to second layer this.transform.GetComponent <Rigidbody>().constraints = RigidbodyConstraints.FreezePositionZ | RigidbodyConstraints.FreezeRotation; if (placementType == 1) { specificBehavior.GetEligibleFirstPlacement(); } else if (placementType == 2) { specificBehavior.GetEligibleSecondPlacement(); } else { specificBehavior.GetEligible(); } }