var health = 50;
var damage = 10;
var Die = 0;
function ApplyDamage (damage : int) {
health -= damage;
if(health <= 0) {
Die();
}
function Die(); {
//Die and or Respawn
};
}
***Error:***
Assets/Player.js(12,10): BCE0044: expecting (, found 'Die'.
↧