//EnemyXP //EnemyLevel & XP // Use this for initialization void Awake() { player = FindObjectOfType <MayaScript> (); _enemyAnim = GetComponent <Animator> (); _agent = GetComponent <NavMeshAgent> (); // enemyAudio = GetComponent <AudioSource> (); _enemyTransform = transform; gameObject.tag = "Enemy"; _timer = 0.0f; setEnemyAttributes(); }
//EnemyXP //EnemyLevel & XP // Use this for initialization void Awake() { player = FindObjectOfType<MayaScript> (); _enemyAnim = GetComponent<Animator> (); _agent = GetComponent<NavMeshAgent> (); // enemyAudio = GetComponent <AudioSource> (); _enemyTransform = transform; gameObject.tag = "Enemy"; _timer = 0.0f; setEnemyAttributes (); }
// Use this for initialization void Start() { newone = true; smoke = true; maya = GameObject.Find("Maya").GetComponent<MayaScript>(); }
void Awake() { maya = GetComponent<MayaScript> (); }
// Use this for initialization void Start() { maya = GameObject.Find("Maya").GetComponent<MayaScript>(); }
void Awake() { maya = GetComponent <MayaScript> (); }
void Start() { instance = this; agent = GetComponent<NavMeshAgent>(); Weapon = GameObject.Find ("W_SwordGame"); weaponHbox = Weapon.GetComponent<BoxCollider>(); healthBar = healthBar.GetComponent<Slider>(); xpBar = xpBar.GetComponent<Slider>(); }