Beispiel #1
0
 void ToggleUI()
 {
     if (inEditing && (int.Parse(AllStoreData[currentStoreIndex].data[currIndex].price) > coinsValue))
     {
         BuyItemB.SetActive(false);
     }
     else
     {
         BuyItemB.SetActive(inEditing);
     }
     SitDownB.SetActive(false);
     ReturnB.SetActive(inEditing);
     NextItemB.SetActive(inEditing);
     PrevItemB.SetActive(inEditing);
     objectTitle.SetActive(inEditing);
     price.SetActive(inEditing);
     GoHomeB.SetActive(!inEditing);
     if (inEditing)
     {
         chatBubbleIsActive = currentChatBubble.activeSelf;
         RequestSent.SetActive(false);
         RequestRejected.SetActive(false);
         AcceptRequest.SetActive(false);
         SendRequest.SetActive(false);
         currentChatBubble.SetActive(false);
     }
     else
     {
         currentChatBubble.SetActive(chatBubbleIsActive);
     }
     ScreenshotB.SetActive(!inEditing);
     joystick.SetActive(!inEditing);
     StoreB.SetActive(!inEditing);
 }
Beispiel #2
0
 void ToggleUI()
 {
     if (inEditing && (int.Parse(storeData.data[currIndex].price) > coinsValue))
     {
         BuyItemB.SetActive(false);
     }
     else
     {
         BuyItemB.SetActive(inEditing);
     }
     ReturnB.SetActive(inEditing);
     NextItemB.SetActive(inEditing);
     PrevItemB.SetActive(inEditing);
     objectTitle.SetActive(inEditing);
     price.SetActive(inEditing);
     GoHomeB.SetActive(!inEditing);
     StartChatB.SetActive(!inEditing);
     joystick.SetActive(!inEditing);
     StoreB.SetActive(!inEditing);
 }