fixed
This commit is contained in:
parent
3c84e66a69
commit
f536d9f5a9
|
|
@ -52,7 +52,7 @@ public class BettingSpaceCombiner : MonoBehaviour
|
|||
if(ped.button == PointerEventData.InputButton.Left){
|
||||
if(RouletteManager.MoneyAvailable < RouletteManager.SelectedChip){return;}
|
||||
|
||||
GameObject newChip = Instantiate(RouletteManager.SelectedChipItem.gameObject,transform.parent.parent);
|
||||
GameObject newChip = Instantiate(RouletteManager.SelectedChipItem.gameObject,transform);
|
||||
int chipsOnBoard = Mathf.Clamp(transform.childCount,0,5)-2;
|
||||
newChip.GetComponent<RectTransform>().position = GetComponent<RectTransform>().position + new Vector3(0,(chipsOnBoard*3));
|
||||
newChip.GetComponent<RectTransform>().sizeDelta = new Vector2(50,50);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user