private void Awake() { _headerMenuModel = ServiceLocator.Resolve <HeaderMenuModel>(); _settingsButton.onClick.AddListener(OnSettingButtonClicked); _headerMenuModel.Money.OnValueChanged += OnMoneyValueChanged; _headerMenuModel.Experience.OnValueChanged += OnExperienceValueChanged; }
public IViewComponentResult Invoke() { HeaderMenuModel headerMenu = new HeaderMenuModel() { BrandName = "NLECA" }; return(View(headerMenu)); }
private void Awake() { _headerMenuModel = ServiceLocator.Resolve <HeaderMenuModel>(); }