Looking for some advice/suggestions - I want to add a delay in the code, in between playing the animation & instantiating the projectile:
private void shootAction_OnShoot(object sender, ShootAction.OnShootEventArgs e)
{
animatorPlayer.SetCharacterState("Cast2"); //My code looks different, as I am using other assets
//This is where I want to add the delay
Transform bulletProjectileTransform =
Instantiate(bulletProjectilePrefab, shootPointTransform.position, Quaternion.identity);
I tried using an Invoke, but that doesn’t work when you have parameters (as we do). I’m not sure if I could use this as a Coroutine, as I am still very new to coroutines.
Any suggestions?