Exemple #1
0
    protected override void Act()
    {
        Debug.Log("Starting Arrive At Destination: " + areaName);
        goalObject = GameObject.Find(areaName);
        DebugUtilities.Assert(goalObject != null, "Couldn't find object:" + areaName);

        var avatar = actingInScene.GetActor("Tyra");

        avatarQuest = avatar.GetComponentInChildren <AvatarQuest>();
        avatarQuest.AddGoalObject(goalObject);
    }
    protected override void Act()
    {
        Debug.Log("Interactable: " + interactableName);

        goalObject = Interactable.GetInteractableFromName(interactableName);
        DebugUtilities.Assert(goalObject != null, "Couldn't find interactable component on:" + interactableName);

        var avatar = actingInScene.GetActor("Tyra");

        avatarQuest = avatar.GetComponentInChildren <AvatarQuest>();
        avatarQuest.AddGoalObject(goalObject.gameObject);
    }