public void CheckUserInput(string colliderName)
 {
     switch (colliderName)
     {
     case "RandomPicture":
         if (post)
         {
             RemovePost(post);
             if (serializer.IsDoubleClickEnabled())
             {
                 CreateNewRandomPost();
                 RemovePost(post);
             }
         }
         if (tapLabel)
         {
             GameObject.Destroy(tapLabel);
         }
         soundController.PlayLikeSound();
         CreateNewRandomPost();
         UpdateClickCount(clickMultiplier);
         CheckClickOutcome();
         UpdateAnnoyance(3);
         break;
     }
 }
Esempio n. 2
0
    public void EnterScreen()
    {
        screenObject = GameObject.Instantiate(Resources.Load("Prefabs/SocialMedia/Shop/ItemsScreen") as GameObject);

        var doubleClickIcon = screenObject.transform.Find("DoubleClickButton");

        if (dgSerializer.IsDoubleClickEnabled() && doubleClickIcon)
        {
            doubleClickIcon.GetComponent <SpriteRenderer>().sprite = soldOutSprites[0];
            doubleClickIcon.GetComponent <Collider>().enabled      = false;
        }
        var messengerBotIcon = screenObject.transform.Find("MessengerBotButton");

        if (dgSerializer.IsMessageBotEnabled() && messengerBotIcon)
        {
            messengerBotIcon.GetComponent <SpriteRenderer>().sprite = soldOutSprites[1];
            messengerBotIcon.GetComponent <Collider>().enabled      = false;
        }

        UpdateText();
    }