protected override void DoWeaponBehavior() { BowWeaponConfig bowConfig = m_WeaponConfig as BowWeaponConfig; ProjectileConfig bowProjectileConfig = bowConfig.GetProjectileConfig(); GameObject spawnedProjectile = Instantiate(bowProjectileConfig.GetProjectilePrefab(), transform.position, m_WeaponOwner.transform.rotation); }
public override void ApplyAbilityEffect() { ProjectileConfig projectileConfig = (m_AbilityConfig as SlowingShotAbilityConfig).GetProjectileConfig(); //REMEMBER TO REMOVE GETPROJECTILETOSPAWN GameObject spawnedProjectile = Instantiate(projectileConfig.GetProjectilePrefab(), transform.position, transform.rotation); projectileConfig.SetupProjectile(spawnedProjectile); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// private void SetupProjectile() { ProjectileConfig blastProjectileConfig = (m_AbilityConfig as LightningBlastConfig).GetBlastProjectileConfig(); GameObject spawnedProjectile = Instantiate(blastProjectileConfig.GetProjectilePrefab(), transform.position + m_ProjectileSpawnOffset, gameObject.transform.rotation); }