Esempio n. 1
0
        /// <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);
            }
        }
Esempio n. 2
0
        /// <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);
            }
        }