public void InitializeProjectile(BaseBullet loadedBullet, string tag, Vector3 bulletDirection) { bullet = loadedBullet; rb = GetComponent <Rigidbody2D>(); visualBullet = GetComponent <Animator>(); visualBullet.runtimeAnimatorController = bullet.GetSprite(); direction = Vector3.Normalize(bulletDirection - transform.position); senderTag = tag; isReady = true; }