UI changes
This commit is contained in:
@@ -8,7 +8,7 @@ public class BettingSpaceCombiner : MonoBehaviour
|
||||
{
|
||||
public CombinerType combinerType;
|
||||
public List<int> combinedNumbers;
|
||||
|
||||
public bool isInverted = false;
|
||||
EventTrigger eventTrigger;
|
||||
|
||||
void Start(){
|
||||
@@ -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);
|
||||
GameObject newChip = Instantiate(RouletteManager.SelectedChipItem.gameObject,isInverted? transform.parent.parent :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);
|
||||
|
||||
Reference in New Issue
Block a user