コード例 #1
0
 /**
  * Remove this interactable from the list of tiles
  *
  * Arguments
  * - InteractiveObject toRemove - The interactive object to remove
  */
 public void RemoveInteractable(InteractiveObject toRemove)
 {
     InteractiveTiles.Remove(toRemove);
     blockedTiles.Remove(toRemove.GetTile());
     Debug.Log("int Remove: " + toRemove.GetTile().ToString());
 }
コード例 #2
0
 /**
  * Add an interactable to the list of tiles
  *
  * Arguments
  * - InteractiveObject toAdd - the interactive object to add
  */
 public void AddInteractable(InteractiveObject toAdd)
 {
     InteractiveTiles.Add(toAdd);
     blockedTiles.Add(toAdd.GetTile());
 }