Beispiel #1
0
 //Called when the button for the 1st ship is pressed
 public void Ship1()
 {
     //Set the current ship to the 1st ship
     bonusInfo.SetCurrentShip(0);
     //Display the confirmation panel
     confirmation.SetActive(true);
     showingPanel = true;
     //Set the sprite of the active ship to be the sprite of this (1st) ship
     activeShip.sprite = ships[0];
     //Change the shape of the image to be the shape of the sprite of this ship
     activeShip.rectTransform.sizeDelta = new Vector2(57, 68);
     //Set all the buttons to be not interactable
     SetButtonsUnclickable();
 }