public override void HandlePhaseChange() { currentWaterLevel = 0; if (actualPhase == 2) { actualPhase = 0; } nextPhase = config.GetPhase(actualPhase + 1); ReceiverConfig.PhaseConfig currPhase = config.GetPhase(actualPhase); lastPhaseMoon = currPhase.moonEnergyReq; lastPhaseSun = currPhase.sunEnergyReq; phaseSun = nextPhase.sunEnergyReq; phaseMoon = nextPhase.moonEnergyReq; minEnergyValueMoon = lastPhaseMoon; minEnergyValueSun = lastPhaseSun; UpdateGraphics(); }
public override void HandlePhaseChange() { if (actualPhase == 1) { rainObj.SetActive(true); } if (actualPhase == 2) { actualPhase = 0; } sunValue = 0; moonValue = 0; nextPhase = config.GetPhase(actualPhase + 1); ReceiverConfig.PhaseConfig currPhase = config.GetPhase(actualPhase); lastPhaseMoon = currPhase.moonEnergyReq; lastPhaseSun = currPhase.sunEnergyReq; phaseSun = nextPhase.sunEnergyReq; phaseMoon = nextPhase.moonEnergyReq; minEnergyValueMoon = lastPhaseMoon; minEnergyValueSun = lastPhaseSun; UpdateGraphics(); }