public void damageTaken(int damage) { GameObject unitThis = hexG.GetUnitGO(this); Transform t = unitThis.transform; string dmgTXT = damage.ToString(); PopUpController.CreateTXT(dmgTXT, t); this.WoundsRem = this.WoundsRem - damage; }