Example #1
0
 protected void InstantiateDamagePopup(FightingEntity target, int damage, DamageType damageType)
 {
     if (damagePopupCanvasPrefab != null)
     {
         DamagePopup popup = Instantiate(damagePopupCanvasPrefab).GetComponent <DamagePopup>();
         popup.Initialize(target, damage, damageType);
     }
 }