Beispiel #1
0
    void HandleWetClothes()
    {
        string destination = DestinationObject.GetWetClothesDestination();

        if (destination == "Dryer")
        {
            Decisions.AddChoice("Dryer");
        }
        else if (destination == "Clothesline")
        {
            Decisions.AddChoice("Clothesline");
        }
    }
Beispiel #2
0
    void OnMouseUp()
    {
        if (DestinationObject.GetIsAdding() == true)
        {
            if (this.gameObject.name == "WetClothes")
            {
                HandleWetClothes();
            }
            else if (this.gameObject.name == "Clothes")
            {
                this.gameObject.SetActive(false);
                Tasks.ShowNextTask();
                return;
            }
            else
            {
                Decisions.AddChoice(DestinationObject.GetDraggedItem().name);
            }
            this.gameObject.SetActive(false);
            Tasks.ShowNextTask();
        }

        Tasks.SetIsAnimationFinished(false);
    }
Beispiel #3
0
 public void ShowStuff()
 {
     Tasks.ShowNextTask();
     Decisions.AddChoice(this.gameObject.name);
 }