/** * 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()); }
/** * 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()); }