/// <summary> /// Sets up a path when called /// </summary> /// <param name="dest"></param> private void FindPlayer(Cell dest) { if (Model == dest) { return; } _path = _pathFinder.CalculatePath(Model, dest, true); if (_path.Count > 2) { _path.RemoveAt(0); _path.RemoveAt(_path.Count - 1); } }
/// <summary> /// Sets up a path when called /// </summary> /// <param name="dest"></param> public void CallDog(Cell dest) { _path = _pathFinder.CalculatePath(Model, dest, true); }