Example #1
0
    private void SetDefaults()
    {
        defaultTimeScale = Time.timeScale;

        floorsAmount    = DEFAULT_FLOORS_AMOUNT;
        elevatorsAmount = DEFAULT_ELEVATORS_AMOUNT;

        ElevatorsAmountChanged.Invoke(elevatorsAmount);
        FloorsAmountChanged.Invoke(floorsAmount);
    }
Example #2
0
    private void OnFloorsCountChanged(string value)
    {
        var amount = CheckInput(value);

        if (amount == -1)
        {
            return;
        }

        floorsAmount = amount;
        FloorsAmountChanged.Invoke(amount);
    }