Ejemplo n.º 1
0
	void OnTriggerEnter2D(Collider2D other)
	{
		if(other.gameObject.tag == "Weapon")
		{
			_weaponattack = other.gameObject.GetComponent<WeaponAttack>();

			//call WeaponBurst function from the script.
			_weaponattack.WeaponBurst();

			//play sword explosion audio.
			_audio.Play();


		}
	}