Example #1
0
        public void SetRepresentor(Ship target, PanelFlipper parentPanel)
        {
            _target      = target;
            _parentPanel = parentPanel;

            _shipIconHolder.sprite = _target.GetComponent <SpriteRenderer>().sprite;
            _shipNameText.text     = _target.ObjName;

            _hitPointsGValueGUi.SetFloatText(_target.HealthStats.HitPoints.StatValue);
            _shieldGValue.SetFloatText(_target.HealthStats.Shield.StatValue);
            _dpsGValueText.SetFloatText(_target.GetShipDps());
            _depthGValueText.SetFloatText(_target.MaxDepth);

            _shipPriceCreditsText.SetIntText(_target.ShipPriceCredits);
            _shipPriceMaterialsText.SetIntText(_target.ShipPriceMaterials);
        }
Example #2
0
 public void SetResources(AccountResources accountResources)
 {
     _credits.SetIntText(accountResources.GetCredits());
     _materials.SetIntText(accountResources.GetMaterials());
 }