public void SetStateToPieces(bool value) { if (value) { State = ListEntryState.pieces; } }
public void SetStateToElectricity(bool value) { if (value) { State = ListEntryState.electricity; } }
public void SetStateToGas(bool value) { if (value) { State = ListEntryState.gas; } }
void ChangeState(int entry, ListEntryState state) { if (entry < listEntries.Length) { listEntries[entry].State = state; } else { Debug.Log("Warning: Tried to Chnage not existing list Entry."); } }