Beispiel #1
0
 protected override void Hovering()
 {
     if (perkInfo.Unlocked(player))
     {
         PerkTreeHoverText.Hovering(perkInfo.Title, perkInfo.Info, perkInfo.Effects);
     }
     else
     {
         PerkTreeHoverText.Hovering(perkInfo.Title, perkInfo.Info, perkInfo.Effects, perkInfo.MissingReqs(player));
     }
 }
 private void Start()
 {
     if (GetPerkTreeHoverText == null)
     {
         GetPerkTreeHoverText = this;
     }
     else
     {
         Destroy(gameObject);
     }
     staticTitleText  = titleText != null ? titleText : GetComponentsInChildren <TextMeshProUGUI>()[0];
     staticInfoText   = infoText != null ? infoText : GetComponentsInChildren <TextMeshProUGUI>()[1];
     staticEffectText = effectText != null ? effectText : GetComponentsInChildren <TextMeshProUGUI>()[2];
     staticReqText    = reqText != null ? reqText : GetComponentsInChildren <TextMeshProUGUI>()[3];
     gameObject.SetActive(false);
 }