void Awake() { //sets variables _health = 3.0f; _actions = GetComponent <buttonControl_script> (); _spawnManager = GameObject.Find("SpawnManager"); }
// Start is called before the first frame update void Start() { meshNav = GetComponent <NavMeshAgent>(); enemySound = GetComponent <AudioSource>(); enemyAnim = GetComponent <buttonControl_script>(); if (gameObject.name == "mummy@idle01") { enemyAnim.Idle(); } }