UI changes

This commit is contained in:
2023-03-07 01:42:04 +05:30
parent f536d9f5a9
commit fedf079f53
9 changed files with 1210 additions and 354 deletions

View File

@@ -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);