void Close() { var avatar = actingInScene.GetActor("Tyra"); avatarQuest = avatar.GetComponentInChildren <AvatarQuest>(); avatarQuest.RemoveGoalObject(goalObject); ComponentDone(); }
void Close() { DebugUtilities.Assert(avatarQuest != null, "Avatar quest is null, did you close it before Act?"); DebugUtilities.Assert(goalObject != null, "Goal object is null, did it unspawn during interact?"); Debug.Log("Closing Interact with:" + interactableName); avatarQuest.RemoveGoalObject(goalObject.gameObject); goalObject = null; ComponentDone(); }