private bool CheckEndCondition() { if (food <= 0) { Debug.Log("Lost by food"); EndWindow.EndingStart(); return(true); } if (population <= 0) { Debug.Log("Lost by population"); EndWindow.EndingStart(); return(true); } if (faith <= 0) { Debug.Log("Lost by faith"); EndWindow.EndingStart(); return(true); } if (tools <= 0) { Debug.Log("Lost by tools"); EndWindow.EndingStart(); return(true); } if (cardsToGo <= 0) { Debug.Log("Victory!"); EndWindow.EndingStart(); return(true); } return(false); }