public void UpdateState() { actualSpeed = speed * SPEED_COEFFICIENT_BY_LEVEL / (state.GetLevel() + 1) * (gameManagerComponent.level + 1); actualScale = scale * SCALE_COEFFICIENT_BY_LEVEL * (state.GetLevel() + 1) / (gameManagerComponent.level + 1); transform.localScale = new Vector3(localScale.x * actualScale, localScale.y * actualScale, localScale.z * actualScale); if (state.GetCanTakePlayerSize() > gameManagerComponent.size) { spriteRenderer.color = Const.ColorConst.RED; } else { spriteRenderer.color = Const.ColorConst.BLUE; } }