private void SetDefaults() { defaultTimeScale = Time.timeScale; floorsAmount = DEFAULT_FLOORS_AMOUNT; elevatorsAmount = DEFAULT_ELEVATORS_AMOUNT; ElevatorsAmountChanged.Invoke(elevatorsAmount); FloorsAmountChanged.Invoke(floorsAmount); }
private void OnFloorsCountChanged(string value) { var amount = CheckInput(value); if (amount == -1) { return; } floorsAmount = amount; FloorsAmountChanged.Invoke(amount); }