public void DisplayToolTip() { skillName.text = associatedSkill.GetSkillName().ToString(); tierNumber.text = "Tier " + associatedSkill.GetCurrentTier().ToString(); skillDescription.text = associatedSkill.GetSkillDescription(); tierValue.text = associatedSkill.GetTierDescriptiveString(); toolTipGroup.gameObject.SetActive(true); }
public SkillRunner(Skill s, int position) { running = true; if (s.GetSkillType() == SkillType.ColorTrigger) { c = new Coordinate(s.GetX(), s.GetY()); inputHexColorCode = s.GetColor(); boxSend = position.ToString(); delay = 50; t = new Thread(RunColorTrigger); } else if (s.GetSkillType() == SkillType.TimeTrigger) { c = new Coordinate(s.GetX(), s.GetY()); boxSend = position.ToString(); delay = s.GetDelayTime(); t = new Thread(RunTimeTrigger); } else if (s.GetSkillType() == SkillType.AuslaufTrigger) { } else { if (s.GetSkillName() == SkillName.HungeringArrow) { delay = 1; t = new Thread(RunMomentum); boxSend = position.ToString(); } } if (position == 2) { c.SetX(c.GetX() + 66); } else if (position == 3) { c.SetX(c.GetX() + 133); } else if (position == 4) { c.SetX(c.GetX() + 200); } }
public void UISkillChooseInstance(Skill _skill) { skillImage.sprite = _skill.getSprite(); nameText.text = _skill.GetSkillName(); manacostText.text = _skill.GetManacost().ToString(); cooldownText.text = _skill.GetSkillCooldownTime().ToString(); if (_skill.GetIsSkillPassive() == true) { descriptionText.text = "<color=#FF000088>Пассивный: </color>" + _skill.GetSkillDescription(); } else { descriptionText.text = _skill.GetSkillDescription(); } literatureText.text = _skill.GetSkillLiteratureDescription(); }
public override string ToString() { return("UseSkill [" + Skill.Index + "] " + Skill.GetSkillName(Skill.Index)); }
public void AddSkill(SkillType type) { AddSkill(Skill.GetSkillName(type)); }