public bool AddInteractableObject(PlayerInteractableBase obj) { // check if object can be added, if so add to dictionary and return true else return false if (!m_InteractableObjects.ContainsKey(obj.CellXY.Value)) { m_InteractableObjects.Add(obj.CellXY.Value, obj); GameFlow.Instance.GridManager.UpdateNodeAtCell(obj.CellXY.Value); return(true); } return(false); }
public void RemoveInteractableObject(PlayerInteractableBase obj) { RemoveInteractableObject(obj.CellXY.Value); }