コード例 #1
0
 void OnTriggerExit(Collider other)
 {
     Debug.Log("Hello");
     DoorPivot.SetBool("OpenDoor", false);
     if (!DestinationObject.GetDraggedItem().activeSelf)
     {
         DoorPivot.SetBool("OpenDoor", false);
     }
 }
コード例 #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);
    }