/// <summary> /// Getting Sleepy /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void GettingSleepy() { var home = Community.FindNearestHome(_dweller.Position.Value); if (home != null) { _dweller.MoveTo(this, home); } }
/// <summary> /// I need to find a cafe /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void GettingHungry() { var cafe = Community.FindNearestCafe(_dweller.Position.Value); if (cafe != null) { _dweller.MoveTo(this, cafe); } }