public void Awake()
        {
            if (_collider == null)
            {
                _collider = GetComponent <Collider>();
            }

            if (_changerMaterial == null)
            {
                _changerMaterial = GetComponent <ChangerMaterial>();
            }
        }
        private void Awake()
        {
            var visual = GameController.VisualSettingsConfig?.GetVisual(_type);

            if (visual != null)
            {
                var visualGameObject = Instantiate(visual, transform.position, Quaternion.identity, transform);
                if (visualGameObject != null)
                {
                    _changerMaterial = visualGameObject.GetComponentInChildren <ChangerMaterial>();
                    if (_changerMaterial == null)
                    {
                        Debug.LogError("_changerMaterial on unit is null");
                    }
                }
            }
        }