Skill System
This asset includes a simple and flexible skill system that allows you to test lightning strikes in various patterns. Four preconfigured strike position layouts are included: 2x3, 2x4, triangle and circle.
Strike Position
Each strike position object uses this script to define the delay for its individual strike. This allows you to create both synchronized and staggered strike sequences.

Strike Position Circle
This helper script lets you quickly generate strike positions arranged in a circle.

Attach it to an empty object, assign the strike position prefab, set the count and radius, and press Generate Positions. You can then adjust the delay on individual positions if needed. Save the object as a prefab and add it to the Preview Prefabs list in the Strike Manager.
Strike Manager
The Strike Manager is the central component of the skill system. It handles showing and hiding strike previews and spawning lightning strikes.

Preview Prefabs
Collection of strike position prefabs. A random one will be selected when previewing.
Lightning Effect Prefabs
Collection of lightning effect prefabs. A random one will be triggered when a strike is activated.
Ground Mask
Defines the layers used for mouse based ground detection. Strike previews will appear where the mouse cursor points.
Rotation Step
Amount of degrees added when rotating strike preview layouts.
Rotation Duration
Time required for the preview layout to rotate toward the new orientation. Set to 0 for instant rotation or increase for smoother rotation.
VFX Lifetime
Time before spawned visual effects are removed again.
Last updated