void Start() { _enemyWeapon = EnemyWeapon.CreateMachinegun(); SetHP(); SetPoints(); _source = gameObject.GetComponentInChildren <AudioSource>(); }
void Start() { ani = gameObject.GetComponent <Animator>(); ani.enabled = false; _enemyWeapon = EnemyWeapon.CreateMachinegun(); SetHP(); SetPoints(); _ssAI = gameObject.GetComponent <SuperSoldierAI>(); _playerDetected = false; _source = gameObject.GetComponentInChildren <AudioSource>(); }