public void GoToDestination(string PathId) { Path path = Currentlocation.GetPath(PathId); if (path != null) { path.GoTo(this); } }
public GameObject Locate(string id) // find a Game_Object around. { if (AreYou(id)) { return(this); } else if (_inventory.HasItem(id)) { return(_inventory.Fetch(id)); } else { return(Currentlocation.Locate(id)); } }