Beispiel #1
0
    void StopKegStand()
    {
        this.GetComponent <Animator>().Play("Idle");
        hero.transform.position       = heroLocation;
        countdown.transform.position  = new Vector3(0.0f, -40.0f, 0.0f);
        stopButton.transform.position = new Vector3(0.0f, -40.0f, 0.0f);
        ioController.EnableClicking();
        ioController.EnableScrolling();
        ResetVariables();

        uiController.AddDrinkingExperience(50);
    }
Beispiel #2
0
 int DrinkBeer(bool success)
 {
     if (success)
     {
         hero.GetComponent <Animator>().Play("DrinkingBeer");
         uiController.DrinkBeer(10);
         uiController.AddDrinkingExperience(10);
     }
     return(0);
 }
Beispiel #3
0
    void TakeAction(string action)
    {
        switch (action)
        {
        case "drinkBeer":
            hero.GetComponent <Animator>().Play("DrinkingBeer");
            uiController.DrinkBeer(10);
            uiController.AddDrinkingExperience(10);
            break;

        default:
            break;
        }
    }