Added Unit Tooltip #6
@ -86,6 +86,7 @@ public class GameObjectPlacementButton : UnitPlacementButton
|
|||||||
public override void OnPointerEnter(PointerEventData eventData)
|
public override void OnPointerEnter(PointerEventData eventData)
|
||||||
{
|
{
|
||||||
Ally allyObj = _prefab.GetComponent<Ally>();
|
Ally allyObj = _prefab.GetComponent<Ally>();
|
||||||
|
Debug.Log("For " + _unitCardInformation.name + ": " + allyObj.Hp);
|
||||||
TooltipManager.Instance.ShowTooltip(_unitCardInformation, allyObj.Hp.ToString(), allyObj.AttackDamage.ToString(), allyObj.AttackInterval.ToString());
|
TooltipManager.Instance.ShowTooltip(_unitCardInformation, allyObj.Hp.ToString(), allyObj.AttackDamage.ToString(), allyObj.AttackInterval.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user