Exemplo n.º 1
0
    public void SetState(CandleState state)
    {
        if (currentState == CandleState.Safe && state == CandleState.Decreasing)
        {
            Game.inst.audio.PlaySound(Game.inst.audio.candleDanger);
        }

        if (currentState != CandleState.Extinct)
        {
            currentState = state;
        }
    }
Exemplo n.º 2
0
 public void LightAnew()
 {
     Game.inst.audio.PlaySound(Game.inst.audio.candleUpgrade);
     currentHealth = 1f;
     currentState  = CandleState.Safe;
 }