public void Init(Equipment equipment)
    {
        Equipment = equipment;
        EquipImageDisplay.sprite = equipment.Sprite;
        CostText.text            = $"{equipment.Cost}";
        EquipmentScreenManager   = GetComponentInParent <EquipmentScreenManager>();
        SetSelected(false);
        GetComponentInChildren <EquipUIColider>().Init(equipment, EquipmentScreenManager);

        EquipImageDisplay.transform.localPosition = equipment.SpriteOffset;
    }
Beispiel #2
0
 public void Init(Equipment equipment, EquipmentScreenManager equipmentScreenManager)
 {
     Equipment = equipment;
     EquipmentScreenManager = equipmentScreenManager;
 }