예제 #1
0
    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);
    }
예제 #2
0
 public void RemoveInteractableObject(PlayerInteractableBase obj)
 {
     RemoveInteractableObject(obj.CellXY.Value);
 }