private bool CheckSize(bool addTolerance) { CurrentSize = Mathf.Sqrt(_renderer.bounds.size.x * _renderer.bounds.size.x + _renderer.bounds.size.z * _renderer.bounds.size.z); //ToUpdateText.text = (CurrentSize / 2.54F * 100).ToString("0.00") + "''"; SizeChanged.Invoke((CurrentSize / 2.54F * 100).ToString("0.00") + "''"); bool isBigEnough = CurrentSize > _maxSize + (addTolerance ? (0.05F * _maxSize) : 0F); return(isBigEnough); }
public void CallSizeChangedEvent(int size) { Size = size; SizeChangedEvent?.Invoke(size); }