Add CrashingPunch and making it work

This commit is contained in:
henriquenakashima 2020-09-18 23:33:57 -04:00
parent 1c3056778e
commit d7c19e2572
15 changed files with 204 additions and 27 deletions

View file

@ -29,7 +29,7 @@ public class HeroInfoUI : MonoBehaviour
void Start()
{
this.mainCamera = Camera.main;
this.nameText.text = this.battleParticipant.getDisplayName();
this.nameText.text = this.battleParticipant.GetDisplayName();
}
// Update is called once per frame
@ -38,8 +38,8 @@ public class HeroInfoUI : MonoBehaviour
Vector3 targetPos = this.mainCamera.WorldToScreenPoint(target.transform.position);
transform.position = targetPos;
int hp = this.battleParticipant.getHP();
int maxHP = this.battleParticipant.getMaxHP();
int hp = this.battleParticipant.GetHP();
int maxHP = this.battleParticipant.GetMaxHP();
if (this.renderedHP != hp || this.renderedMaxHP != maxHP) {
this.renderedHP = hp;