Exemple #1
0
        public void GoToDestination(string PathId)
        {
            Path path = Currentlocation.GetPath(PathId);

            if (path != null)
            {
                path.GoTo(this);
            }
        }
Exemple #2
0
 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));
     }
 }