Spawn Fish

A StateMachineBehaviour that triggers fish spawn and despawn at a specific animation time. It connects with all the components that implement IFishSpawner


🔧 Inspector Settings

Spawn Time Normalized animation time (0 – 1) when spawn/despawn should occur.

Despawn

  • Unchecked: Calls SpawnFish().

  • Checked: Calls DespawnFish() instead.


📈 Key Behavior

Trigger Logic

  • During update: Once animation reaches spawnTime, fires once—either SpawnFish() or DespawnFish() based on the despawn flag.


💡 Notes

  • Currently being used on Fishing_End_Catch_Fish and on Store_Fish_from_Holding aniations.

  • FishCatcher implements IFishSpawner

Last updated