public void NextPhase() { if (currentPhase == E_Phase.Event) { currentPhase = E_Phase.Morale; } else if (currentPhase == E_Phase.Morale) { currentPhase = E_Phase.Production; } else if (currentPhase == E_Phase.Production) { currentPhase = E_Phase.Action; } else if (currentPhase == E_Phase.Action) { currentPhase = E_Phase.Weather; } else if (currentPhase == E_Phase.Weather) { currentPhase = E_Phase.Night; } else if (currentPhase == E_Phase.Night) { currentPhase = E_Phase.Event; } currentPhaseChanged.Invoke(this, new EventArgs()); }
private void StageHandler_CurrentStageChanged(object sender, System.EventArgs e) { var phaseView = sender as PhaseView; E_Phase stage = phaseView.currentPhase; if (stage == E_Phase.Event) { container.texture = eventPhase; } if (stage == E_Phase.Morale) { container.texture = moralePhase; } if (stage == E_Phase.Production) { container.texture = productionPhase; } if (stage == E_Phase.Action) { container.texture = actionPhase; } if (stage == E_Phase.Weather) { container.texture = weatherPhase; } if (stage == E_Phase.Night) { container.texture = nightPhase; } }
public void ChangeCurrentPhaseTo(E_Phase phase) { currentPhase = phase; currentPhaseChanged.Invoke(this, new EventArgs()); }