// Start is called before the first frame update void Start() { AudioSource[] audios = GetComponents <AudioSource>(); first = audios[0]; second = audios[1]; rb = GetComponent <Rigidbody2D>(); animator = GetComponent <Animator>(); manager = GameObject.Find("Manager").GetComponent <NYCManager>(); health = 100; healthBar.value = health; }
void Awake() { Instance = this; }