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