Beispiel #1
0
    void Start()
    {
        appointments.Add(
            new Appointment(
                TimeManager.worldTime.HourMinuteToTime(9, 10), "confess",
                player, confession));

        appointments.Add(new Appointment(
                             TimeManager.worldTime.HourMinuteToTime(9, 20), "dance"
                             , () => PointOfInterrest.GetClosestByName("Well", transform.position).transform));

        OnPositionChange += UpdateDistance;
        if (appointments.GetNext().conversationPartner != null)
        {
            appointments.GetNext().conversationPartner.OnPositionChange += UpdateDistance;
        }
        UpdateDistance(transform.position);
    }