private bool ChestAtPosition(Vector3 mp) { foreach (Chest chest in chests) { if (objectGrid.GetCoords(chest.transform.position) == objectGrid.GetCoords(mp)) { return(true); } } return(false); }
public void Place(Vector3 screenPos, ObjectGrid objectGrid) { Place(objectGrid.GetCoords(screenPos), objectGrid); }