Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

BCE0019: 'enabled' is not a member of 'UnityEngine.Component'

$
0
0
Hi, I just finished my project but after I wanted to build it as a WebGL this error shows up in one of my scripts(java). var EnemyHealth : int = 10; var Zombie : GameObject; function Points (DamageAmount : int) { EnemyHealth -= DamageAmount; } function Update () { if (EnemyHealth <= 0) { this.GetComponent("ZombieFollow").enabled = false; Zombie.GetComponent.().Play("back_fall"); EndZombie(); } } function EndZombie () { yield WaitForSeconds(1.13); //Umfall Animation Destroy(gameObject); } I hope someone could help me

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>