private void Awake() { _view = GetComponent <ShopView>(); _moneyController = FindObjectOfType <MoneyController>(); if (!_view) { throw new Exception($"{gameObject.name} does not have component! - {_view.GetType()}"); } if (!_moneyController) { throw new Exception($"{gameObject.name} does not have component! - {_moneyController.GetType()}"); } }