https://playcanvas.com/editor/code/612040?tabs=19182205 here id the full code,
EHealth.prototype.initialize = function() {
this.healthEntity = this.app.root.findByName('eHealth');
this.AI = this.app.root.findByName('AI');
this.textEntity = this.app.root.findByName('win');
this.textHealth = 100;
};
im setting the value here
Ive tryed this this.text.element.text = “”; to kinda help but never succeds (i think because it needs a string not a number